Math problems?
Jim Ault
JimAultWins at yahoo.com
Fri May 19 15:10:57 EDT 2006
try
get 10.27
get (it-(it div 1)*100
Jim Ault
Las Vegas
On 5/19/06 12:04 PM, "Peter T. Evensen" <pevensen at siboneylg.com> wrote:
> I am doing the following:
>
> put 10.27 into tNumber
> put the trunc of tNumber into tInteger
> put tNumber - tInteger into tDecimal
> put 100 * tDecimal into tNew Decimal
> put the trunc of tNewDecimal
>
> and I get 26 instead of 27.
>
> Am I doing something wrong? Is this a bug? Is there another way to
> isolate the decimal portion?
>
> Peter T. Evensen
More information about the use-livecode
mailing list