TypstDocumentation

float

Convert a value to a float.

Example

#float(false) \
#float(true) \
#float(4) \
#float("2.7") \
#float("1e5")
Preview

Parameters
Question mark

value
booleanintegerfloatstringRequiredPositional
Question mark

The value that should be converted to a float.