The Number type can't store the value 3.8 exactly, because as a binary fraction it would require an infinite number of bits. You're getting the Number closest to 3.8.
- Gordon ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ActionsScript 3 Cookbook Companion Classes: Number Utilities Bug Wow, the description says that this number will be rounded up to the next decimal point: trace (NumberUtilities.round(3.75,.1)); .1, being the flag to round up, so the result should be 3.8. It's not it's: 3.8000000000000003! I know I'm using this method correctly, any tips or suggestions. Thanks, Patrick