I thought that result of any mathematical operation on a NaN should give me a NaN back, but Math.round(Float.NaN) == 0
What is the rationale for such behavior of Math.round()?
Curiously, C# behaves differently: http://msdn.microsoft.com/en-us/library/75ks3aby.aspx