Database.Float32

Database

32-bit floating-point column type.

Reducers

Types

Float32

type Float32 = Float32

32-bit floating-point column type.

Examples

type alias Row = { amount : Float32 }

access rows token
    |> reduce (Database.Float32.sum .amount)

Values

sum

sum : (row -> Float32) -> Reducer row FloatX

Compute the sum of the relevant rows.

Examples

access rows token
    |> reduce (Database.Float32.sum .amount)