Gambas Documentation - /lang/cbr

# Cbr

Value = Cbr ( Number AS Float ) AS Float

Computes the cubic root of a number. The number can be zero, negative or positive.

### Examples

    PRINT Cbr(2)

    1.259921049895

    PRINT Cbr(-8)

    -2

    DIM i AS INTEGER
    FOR i = -2 TO 2
      PRINT i, Cbr(i)
    NEXT

    -2    -1.259921049895
    -1    -1
    0     0
    1     1
    2     1.259921049895

### See also

- Logarithms & Exponentials Functions