Answers for "how to apply format in numbers"

PHP
0

number formatting with format()

# d, f, b and h are types

# integer
print(format(12, "d"))

# float arguments
print(format(123.4567898, "f"))

# binary format
print(format(12, "b"))

# hexadecimal format
print(format(12, "x"))
Posted by: Guest on November-15-2021

Code answers related to "how to apply format in numbers"

Browse Popular Code Answers by Language