Is there an easy way to get that?
For example:
i = 23.45678;
j = fn(i);
j would be .45678
I´m using now a maketext to string, then string to number and then a subtraction, like:
i = 23.456789;
x = maketext("%7.0f", i);
j = tonumber(x);
k = i  j;
getting the decimal part of a number
getting the decimal part of a number
Best
Ari
Ari

 Posts: 1418
 Joined: December 5th, 2011, 11:27 pm
 Location: Washington, DC
Re: getting the decimal part of a number
How about using the int function:
numeric decimal_part = value  int(value);
Re: getting the decimal part of a number
Gee,
I swear I´ve went down all over the alphabetical list of functions and did not see it.
Thanks Greg
I swear I´ve went down all over the alphabetical list of functions and did not see it.
Thanks Greg
Best
Ari
Ari