Ja. Sicher. Ist doch nur eine Instanzvariable.
Aber "== 100%" geht natürlich nicht. Und auch nicht == 1.0f
Dafür gibt es ne eigene Webseite.
http://floating-point-gui.de/errors/comparison/
Aber "== 100%" geht natürlich nicht. Und auch nicht == 1.0f
Dafür gibt es ne eigene Webseite.
http://floating-point-gui.de/errors/comparison/