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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...