TypstDocumentation

float

Convert a value to a float.

Example

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

Parameters
Question mark

value
boolean or integer or float or ratio or string
RequiredPositional
Question mark

The value that should be converted to a float.