Hi,
as far as I know there is really no coercion to "number", number is a vital superclass to integer and float, so if you don't want float (which comes with exponents) you have to take integers. (This has been changed in the past, earlier version of Applescript may behave differently.) If you know, how many digits you need, you can proceed as follows:
set myVal to 4999.0 * 12.5 set myVal to myVal * 100 as integer set myFraction to myVal mod 100 set myVal to myVal div 100 set myVal to myVal & "." & myFraction as text display dialog myVal
Richard Lake Marketing Manager Tel: 0800 158 3898 | Email: email@hidden
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
|