what is the difference between definition numeric value 0.0, .0, 0.?
-
Can anyone explain me what is the difference in determination value? double a = 0.0; double a = .0; double a = 0.;
-
Can anyone explain me what is the difference in determination value? double a = 0.0; double a = .0; double a = 0.;
-
No difference, they all represent the value 0.00, they are just different ways of writing it in source code. You could easily have found this out by writing a small program and stepping through it with your debugger.
Does exist any document or standard how correct use it forms?
-
Does exist any document or standard how correct use it forms?
It is defined in the C++ standard available at https://isocpp.org/std/the-standard[^] (the current draft can be downloaded as PDF; see there 2.13.4 Floating literals). Instead of reading the standard it is often sufficient to read a C++ online reference like floating point literal - cppreference.com[^] because those are not so hard to read as the standard and contain examples.
-
Does exist any document or standard how correct use it forms?