PDA

View Full Version : Extracting integers and fractions



cchian
08-30-2002, 11:37 PM
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.

cchian
08-31-2002, 03:11 PM
I found a way to do it by using Variable > Format Number and then using some substraction.