jvillaga
Member
I have a floating point value (F12:0) that I need to copy to three 3 digit integer addresses (N12:0-N12:2).
I don't need the decimal portion, just the whole number.
In other words, I need the following:
If F12:0 = 999, then N12:0=0 N12:1=0 N12:2=999
If F12:0 = 999,999 then N12:0=0 N12:1=999 N12:2=999
If F12:0 = 999,999,999 then N12:0=999 N12:1=999 N12:2=999
I don't need to worry about rollover (1,000,000,000 just resets to 0,0,0 then continues from there).
Seems pretty easy, but I can't quite figure out how to do it!
thanks,
Jane
I don't need the decimal portion, just the whole number.
In other words, I need the following:
If F12:0 = 999, then N12:0=0 N12:1=0 N12:2=999
If F12:0 = 999,999 then N12:0=0 N12:1=999 N12:2=999
If F12:0 = 999,999,999 then N12:0=999 N12:1=999 N12:2=999
I don't need to worry about rollover (1,000,000,000 just resets to 0,0,0 then continues from there).
Seems pretty easy, but I can't quite figure out how to do it!
thanks,
Jane