SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using a technology that has a minimal JDK. Here's a way without any Java libs:
double scale = 100000; double myVal = 0.912385; double rounded = (int)((myVal * scale) + 0.5d) / scale;