Math problems?

Peter T. Evensen pevensen at siboneylg.com
Fri May 19 15:25:25 EDT 2006


Ok, I didn't think of just using the string functions.  I guess I'm too 
used to typed languages. LOL

At 02:20 PM 5/19/2006, you wrote:
>Recently, Peter T. Evensen 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?
>
>Here's one way (I bet there are more):
>
>   get char offset(".",tNumber) to -1 of tNumber
>
>BTW, I never knew you could use the form "the trunc" :-)
>
>Regards,
>
>Scott Rossi
>Creative Director
>Tactile Media, Multimedia & Design
>-----
>E: scott at tactilemedia.com
>W: http://www.tactilemedia.com
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your 
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution

Peter T. Evensen
http://www.PetersRoadToHealth.com
314-629-5248 or 888-682-4588 





More information about the use-livecode mailing list