Java to round to nearest number.
My Service Call gives me a decimal number 1.2073544433094996, i then map it to a label. Is there any java I can add to change it to 1.2 or round to closest number?
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
My Service Call gives me a decimal number 1.2073544433094996, i then map it to a label. Is there any java I can add to change it to 1.2 or round to closest number?
I tried that didn't work
Can you show how you are using it? (Code example).
Hello! You need to change JS in mapping instead prereturn Math.round(KillDR);/pre should be prereturn Math.round(value);/pre