Describe the bug
If the value is a floating-point number, tonumber() returns nothing.
Expected behavior
tonumber() should be able to convert 2.5 string value to a number.
How to reproduce
| makeresults
| eval number="2.5"
| eval convert=tonumber(number)
If you try the following, it will return error instead of 2.5:
class java.lang.Double cannot be cast to class java.lang.String (java.lang.Double and java.lang.String are in module java.base of loader 'bootstrap')
| makeresults
| eval convert=tonumber(2.5)
Screenshots
Software version
pth_10 version: 12.1.1
Desktop (please complete the following information if relevant):
Additional context
Describe the bug
If the value is a floating-point number,
tonumber()returns nothing.Expected behavior
tonumber()should be able to convert2.5string value to a number.How to reproduce
If you try the following, it will return error instead of
2.5:class java.lang.Double cannot be cast to class java.lang.String (java.lang.Double and java.lang.String are in module java.base of loader 'bootstrap')Screenshots
Software version
pth_10 version: 12.1.1
Desktop (please complete the following information if relevant):
Additional context