I'm scratching my head over this. Not sure what I'm doing wrong? I need to compare a decimal value of a numeric field to see if it contains a specific value of 0.3. Here is some sample code:
var num:Number = 2.3; var num2:Number = num - int(num); var num3:Number = 0.3; trace(num); // 2.3 trace(num2); // 0.3 trace(num3); // 0.3 trace(num2 == num3);// false trace(num2 > num3);// false trace(num2 < num3);// true Why doesn't 0.3 equal 0.3? I've replaced int with Math.floor(), and it still doesn't work. I need to get the value after the decimal point and see if it equals 0.3. Thanks for your help. Doug Coning Senior Web Development Programmer FORUM Solutions [EMAIL PROTECTED] This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please "reply to" sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

