Sorry, I realise I didn't *exactly* address what you asked. Almost always it's a human friendly string that's wanted and not a - necessarily *less* accurate - floating point value. Rounding in...
Type: Posts; User: pbrockway2
Sorry, I realise I didn't *exactly* address what you asked. Almost always it's a human friendly string that's wanted and not a - necessarily *less* accurate - floating point value. Rounding in...
Typically there two ways of producing a human friendly string from a floating point value like a double: have a look at the DecimalFormat class and the format() method of String. (PrintStream...