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!

Think Like an Architect: Introducing the Splunk Certified Cybersecurity Defense ...

In cybersecurity, defenders respond to threats. Architects design the systems that stop them.    As ...

Index This | What has goals but no motivation?

June 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Deep Dive: Accelerate threat investigation with Splunk’s AI Assistant in Security

AI is one of the biggest topics in the market today, and for security teams, its value goes far beyond the ...