MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / toString

Method toString

vm/JavaAPI/src/java/lang/Float.java:200–202  ·  view source on GitHub ↗

Returns a String representation of this Float object. The primitive float value represented by this object is converted to a String exactly as if by the method toString of one argument.

()

Source from the content-addressed store, hash-verified

198 * Returns a String representation of this Float object. The primitive float value represented by this object is converted to a String exactly as if by the method toString of one argument.
199 */
200 public java.lang.String toString() {
201 return toString(value);
202 }
203
204 /**
205 * Returns a String representation for the specified float value. The argument is converted to a readable string format as follows. All characters and characters in strings mentioned below are ASCII characters. If the argument is NaN, the result is the string "NaN". Otherwise, the result is a string that represents the sign and magnitude (absolute value) of the argument. If the sign is negative, the first character of the result is '-' ('-'); if the sign is positive, no sign character appears in the result. As for the magnitude m: If m is infinity, it is represented by the characters "Infinity"; thus, positive infinity produces the result "Infinity" and negative infinity produces the result "-Infinity". If m is zero, it is represented by the characters "0.0"; thus, negative zero produces the result "-0.0" and positive zero produces the result "0.0". If m is greater than or equal to 10-3 but less than 107, then it is represented as the integer part of m, in decimal form with no leading zeroes, followed by '.' (.), followed by one or more decimal digits representing the fractional part of m. If m is less than 10-3 or not less than 107, then it is represented in so-called "computerized scientific notation." Let n be the unique integer such that 10n

Callers 9

initThemeConstantsMethod · 0.95
appendMethod · 0.95
insertMethod · 0.95
runTestMethod · 0.95
valueOfMethod · 0.95
appendMethod · 0.95
insertMethod · 0.95
formatRotateValueMethod · 0.95
formatValueMethod · 0.95

Calls 5

absMethod · 0.95
toStringImplMethod · 0.95
toCharArrayMethod · 0.95
indexOfMethod · 0.95
substringMethod · 0.95

Tested by 1

runTestMethod · 0.76