Page 1 of 1
Integer part
Posted: Mon Sep 20, 2010 12:27 pm
by msc87
Hi
How can i have the integer parts of number? considering that i am using PLE version.
[2.4]= 2
TNX
Posted: Mon Sep 20, 2010 1:05 pm
by Administrator
Is the INTEGER function available to you?
Posted: Mon Sep 20, 2010 11:24 pm
by msc87
yes, it is.
but what i want is not exactly the integer part of number . I need the floor, bracket or whatever it is called.
[2.4]=2
[-2.4]=-3
Posted: Tue Sep 21, 2010 7:24 am
by Lee Jones
Probably not very elegant but try;
integer(value)-if then else(value<0,1,0)
Posted: Tue Sep 21, 2010 7:30 am
by Administrator
You could make Lee's solution into a simple macro as well.