This example will show how to convert a string to a double or float in groovy. Calling the string replace we will move all the special charachters. Next calling the parseFloat()
or parseDouble()
we will transform the string to a number.
This example will show how to convert a string to a double or float in groovy. Calling the string replace we will move all the special charachters. Next calling the parseFloat()
or parseDouble()
we will transform the string to a number.