format
Formats the Double to a string with a specified number of decimal digits, using a period (.) as the decimal separator. Example: 3.14159.format(2) -> "3.14"
Formats the Float to a string with a specified number of decimal digits, using a period (.) as the decimal separator. Example: 3.14159f.format(2) -> "3.14"