Skip to content

SQRT Expression

SQRT parses a numeric input and applies std::sqrt.

Syntax

SQRT{value}

Examples

These forms are already covered by ACE's expression tests/reference:

SQRT{16}   -> 4
SQRT{1}    -> 1
SQRT{0}    -> 0

Nested numeric expressions may be used as the input because inner expressions are resolved first.

Use a non-negative input when a real-number result is required.