I have following code snippet :
<span ng-if="document.size<500" >
0
</span>
<span ng-if="document.size >=500 && document.size < 1048576" >
{{document.size/1024}}
</span>
<span ng-if="document.size >=1048576" >
{{document.size/1048576}}
</span>
i got document size in byte and then i convert it into KB and MB. but it gives value in double. how can i convert it into int in angular js? can i convert it in int expression directly? Thanks in advance