floatToStringPoint static method

String floatToStringPoint(
  1. double val, [
  2. int? width
])

Implementation

static String floatToStringPoint( double val, [int? width] ){
	String str = floatToString( val, width );
	if( !str.contains( "." ) ){
		str += ".0";
	}
	return str;
}