Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

jtoken toobject is not exact double

//jToken.Value<double>() in some cases don't give the exact value (if jToken is 0.7 than you might get 0.6999...)
//For exact parsing:
double.Parse(jToken.Value<string>());
 
PREVIOUS NEXT
Tagged: #jtoken #toobject #exact #double
ADD COMMENT
Topic
Name
1+5 =