A double precision (64-bit) IEEE 754 floating point. The rounding mode is round to nearest. Literals are in base 10 only, and may be given either with or without a decimal place, Negative values are also permitted. No exponent syntax is provided. For example:
declare local var.f FLOAT; set var.f = 1.2; set var.f = -3;
FLOAT type may express NaN. In general, arithmetic operations involving a NaN will produce NaN. NaN values are signalled through the
fastly.error variable. There is currently no literal syntax for assigning NaN.
FLOAT type may express IEEE 754 infinities. These are signed values, and behave with special semantics for some operators. There is currently no literal syntax for assigning infinities.
Conversions to STRING values are always rendered to 3dp precision:
declare local var.f FLOAT; set var.f = -3.5; log var.f; /* "-3.500" */