Splunk Search

How does splunk handle decimal value?

yuwtennis
Communicator

Hi!

I would like to know how does splunk handle the decimal values during eval procesing.

It seems that after the eval(multiplication or division) , the number is rounded to 6digits.

So if the result is 1.123456789, it would be 1.123456.

Is there, rules in splunk for handling decimal number?

Since its crucial issue, any advice is appreciated!

Thanks,
Yu

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

I seem to get more than six decimals... when you run this

| stats count as foo | eval foo = 1000000.0001 | eval bar = foo / 10000000

do you get a value for bar other than 0.10000000001?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...

Keep the Learning Going with the New Best of .conf Hub

Hello Splunkers, With .conf26 getting closer, there’s already a lot of excitement building around this year’s ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...