hyperjumptech / grule-rule-engine

Rule engine implementation in Golang
Other
2.16k stars 338 forks source link

ParseJsonRule ParseJsonRuleSet will encounter precision loss when unmarshalling numbers into int64 #451

Open neallu304 opened 2 months ago

neallu304 commented 2 months ago

Describe the bug ParseJsonRule and ParseJsonRuleSet functions will encounter precision loss when unmarshalling a big number

For example, if the rule contains a number, and that number is 509682941429859799, after calling ParseJsonRule, the number will be converted to 509682941429859800.