August 25, 2010

 

java: float fun

This cycle never ends!

for (float x = 16777213f; x < 16777218f; x += 1.0f)
{
System.out.println(x);
}

Read more: Java's new math, Part 2: Floating-point numbers
or russian translation: Новые математические возможности Java: Часть 2. Числа с плавающей точкой

Labels: , , , ,

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?