newbie question: real with fraction to int
newbie question: real with fraction to int
- Subject: newbie question: real with fraction to int
- From: leo <email@hidden>
- Date: Sat, 25 Oct 2003 01:39:04 +1000
hi there
i want to assign a real to an integer but casting or ("coerceing" in AS)
works only for non fractional reals. so, the line
set i to 9.5 as integer
gives an error. how can i truncate a value to an int regardless of the
fraction ? i looked thoroughly in the ASLanguageGuide but couldn't find
anything.
thanks and cheers, leo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.