Howdy Adrian, Here is one way.
trace (int((0.27 + 0.03)*100)/100) // output --> 0.3 Later, John on 12/14/10 8:42 AM, Adrian Zając at zajac.adr...@gmail.com wrote: > Hello, > > First of all, I want to say Hi to everyone here. This is my first post. > > > Please, take a look at this part of code: > > trace (0.27 + 0.03); // output --> 0.30000000000000004 > > Can anyone tell me why I get this weird result in output window? > > > Regards > Adrian John R. Sweeney Jr. Interactive Multimedia Developer OnDemand Interactive Inc 945 Washington Blvd. Hoffman Estates, IL 60169 Office/Fax: 847.310.5959 Cellular: 847.651.4469 www.ondemandinteractive.com _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders