# NumberFlow, float nodes

These nodes provide a collection of floating-point functions. The example images use U as the first and V as the second input.
Adds three floats together. This is slightly faster and more convenient than using two Add nodes.
Subtract
Subtracts the second float from the first.
Multiply
Multiplies two floats together.
Divide
Divides the first float by the second. It's typically faster to use multiply instead.
Modulo
Computes the first float modulo the second.
Absolute
Takes the absolute value of a float. The example image shows the absolute of (U - V).
Square
Squares a float.
Cube
Cubes a float.
Square Root
Computes the square root of a float.
From Int
Converts an int to a float.
Curve
Evaluates a point on a curve.
Lerp
Linearly interpolates between two floats based on a third. The example image interpolates between U and V based on (UV center distance × 2).

## With 1

These are convenient nodes for addition, subtraction, and division with the number one.
+ 1
- 1
Subtracts one to a float.
1 -
Subtracts a float from one.
1 %
Divides one by a float.

## Relative

Highest
Takes the highest of two floats.
Lowest
Takes the lowest of two floats.
Average
Takes the average of two floats.

## Range

The example images use (U × 3 - 1) as input.
Clamp 01
Clamps a float to the 0–1 range. Clamping has no effect for the example image, as values outside of the color range are clamped already.
Loop 01
Loops a float over the 0–1 range.
PingPong 01
Ping-pongs a float over the 0–1 range.

## Trigonometry

The example images use (U × 10) as input and are transformed from the -1–1 range to the 0–1 range.
Cosine
Computes the cosine of a float.
Sine
Computes the sine of a float.
Sinusoid
Converts a float to a sine wave with a configurable frequency and offset. This is often more convenient that using sine or cosine directly. The example image uses V as the frequency and an offset of 0.