Rounding double values


(Mohamed) #1

Hello,

Can someone help me in rounding up double value in a pipeline rule?

The double value come out like 128.99017333984375 and i just need to see something link 128.99

Thank you
Mohamed


(Pedro Miguel Pereira Serrano Martins) #2

Although not perfect, you can always convert the number string to a substring:

http://docs.graylog.org/en/2.4/pages/pipelines/functions.html#substring

and then convert that substring to a double:

http://docs.graylog.org/en/2.4/pages/pipelines/functions.html#to-double


(Mohamed) #3

@Fl4m3Ph03n1x
Thank you so much. Easy solution that will do the trickā€¦

Mohamed


(system) #4

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