We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

std.atof()

Takes a string (which represents a float) as an argument and returns its value. Behaves as if calling std.strtof() with a base of 10.

Format

FLOAT
std.atof(STRING s)

Examples

1
2
3
if (std.atof(req.http.X-String) > 21.82) {
  set req.http.X-TheAnswer = "Found";
}