dropping the decimal values in a calculated field
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
dropping the decimal values in a calculated field
I am dealing with large dollar values andI would like to just drop the decimal value in calculated fields 4.556 becomes 4
-
- Livecode Opensource Backer
- Posts: 447
- Joined: Mon Jan 23, 2012 12:46 pm
Re: dropping the decimal values in a calculated field
Code: Select all
on mouseup
put 4.556 into MyDollarValue
set the itemdelimiter to "."
put item 1 of MyDollarValue
end mouseup
-
- VIP Livecode Opensource Backer
- Posts: 3581
- Joined: Mon Jan 22, 2007 7:36 am
- Location: Berkeley, CA, US
- Contact:
Re: dropping the decimal values in a calculated field
put trunc(4.556)
PowerDebug http://powerdebug.ahsoftware.net
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
PowerTools http://www.ahsoftware.net/PowerTools/PowerTools.irev
Re: dropping the decimal values in a calculated field
Thanks its working