text().as_double() willing make floting number problem #491
Unanswered
zhu1035167865
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Your debugger probably just displays a truncated number, but the original number should be fully precise. E.g. this code prints
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
SimulationNumericalParams_node.child("EndDay") = "111111111"
after I run the line below:
(SimulationNumericalParams_node.child("EndDay").first_child().text().as_double());
it will show that 1.1111111e+7
Is that possible keep it in 111111111?
I need to do Ten-digit high-precision calculation.
Beta Was this translation helpful? Give feedback.
All reactions