FB II Compiler

PG PRO

Debugging

Memory

System

Mathematics

Resources

Disk I/O

Windows

Controls

Menus

Mouse

Keyboard

Text

Fonts

Drawing

Sound

Clipboard

Printing

Communication

ASM

Made with FB

MATHEMATICS

Calculate a cube root


To get a root, raise the number to the reciprocal power:

def fn cubeRoot!(val!) = val! ^ (1 \ 3)

or

def fn anyRoot!(val!,whichRoot) = val! ^ (1 \ whichRoot)

Jay Reeve