Logstash ruby filter math on very large numbers


I am trying to do some math on some very large numbers in logstash and it appears that the .to_f is not large enough as its giving me very inaccurate information. is there anything larger than a float I can use?

here is my bit of code

ruby {
           code => event.set('in_diff, (event.get('in').to_f  - event.get('in_old').to_f))


As an example the number I am trying to do math on is over 1,000,000,000,000

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.