PDA

View Full Version : 1e-10 or 0.0000000001 ?


cermunnos
07-07-2011, 03:28 PM
In As3, I have condition such as

if(k < 0.0000000001)

Is it better practise to use this style or

if(k < 1e-10)

wvxvw
07-08-2011, 09:38 AM
Haven't heard of any best practice advises in this regard, but I would use w/e is shorter. IMO counting repeating characters isn't what you want to do when debugging stuf.