Scalar functions calculate a value based on another single value. Scalar functions are also called value functions and can be nested.