You are not logged in.
Pages: 1
I get this JSON value
"TotalVolumen":2567.79126
But the local format use ',' as decimal separator
Then the call to
aFloatvalue := V.TotalVolumen
get an integer
256779126
How to define TdocVariant decimal separator?
Offline
If there is a "," this is not valid JSON...
So there is no way and no mean of changing TDocVariant decimal separator.
Thanks for the response.
The opposite, the float HAVE a '.', is that:
2567.79126
The problem is don´t get recognized as a valid float value.
I have to force this using this code
aTotalVolumen := VarAsType(soVentas.TotalVolumen, varDouble);
I expect to be converted *automagically*
Thanks for any comment or indication of what im doing wrong.
Offline
I will check it, thanks.
Offline
Pages: 1