I am trying to do some basic calculations and need a way of extracting the integer part and also the first three digits after the decimal point. For example, if a divide 8 by 1.3, I get 6.153846154, I want to assign the integer (6) to a variable. I also want to assign the first three digits after the decimal point (153) to another variable.
Announcement
Collapse
No announcement yet.
Extracting integers and fractions
Collapse
X
Comment