get_raw_value() to avoid sscanf for float. unsafe_get() #99
adrianboston
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
We already have some ideas in that direction, although it will probably not be in the value class, only in the event interface. But I might take the value class into account as well, I just need more time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am seeking a way of accessing the 'raw' value - for lack of a better word - of a value. Specifically of a float or double.
Using the following as an example:
salary.get_double() returns that dang 95000.2300000000002 value.
Given that json is a string at some point can we access the float as a string.
I see
double get_double() const
{
validate_json_type( json::type::DOUBLE );
return unsafe_get_double();
}
Is there just an unsafe_get()
Beta Was this translation helpful? Give feedback.
All reactions