Home > Back-end >  Directly with a real sacnf input, output, why change
Directly with a real sacnf input, output, why change

Time:11-07

Why, how to correctly input?

CodePudding user response:

Float and double precision problems, the solution, can only do rounding processing

CodePudding user response:

reference 1st floor SuperDay response:
float and double precision problems, this is no solution, can only do rounded handle
I lose the decimal point two decimal is this? There is no solution?

CodePudding user response:

refer to the second floor whyinxj110 response:
Quote: refer to 1st floor SuperDay response:
float and double precision problems, this is no solution, can only do rounded handle
I lose the decimal point two decimal is this? There is no solution?

Several are all the same, the computer has virtually no decimal type, so some floating-point representation error precision, if a simple input and output, string can be used, but in calculation