$res = 0.0 * -1.0;
I get float -0
What is this weird behavior?
Floating point numbers allow you to have a signed zero .
You should not worry, however, as +0.0 === -0.0 ( demo ) . (Not that you used such a comparison for float.)
+0.0 === -0.0
Since floating point is +0 and -0 .
Source: https://habr.com/ru/post/909882/More articles:Change max_heap_table_size value? - mysqlobtaining the dimension of a multidimensional array in ruby ββ- arraysAzure SQL Federation at NHibernate - c #access to images from s3 in case of numbness - amazon-s3Examples of common practical applications for bubbles and event captures? - jqueryAutofac: Register Func <> or Factory? - c #Ruby on rails error error 535-5.7.1 Username and password not accepted - ruby-on-railsHow to fix ggplot size in R while saving it using png ()? - rDoes a UIView rotated 45 Β° disappear? - iosNginx download problem css / images - nginxAll Articles