Numbers

Home • Gallery • Tutorials • Download • Purchase • Site Map
 

Number Syntax

Numbers are the numeric values you use in your Fractal Science Kit fractal programs.

Float Syntax:

[ - ] <Digits> . <Digits> [ e +/- <Exponent> ]

Floats are signed IEEE 64-bit (8-byte) double-precision floating-point numbers.

The range of negative numbers is:

-1.79769313486231570e+308 <= number <= -4.94065645841246544e-324

The range of positive numbers is:

4.94065645841246544e-324 <= number <= 1.79769313486231570e+308

Example:

1
-2
1.23
-22.3
3e8
4e+6
1e-16
1.234e-8

Complex Syntax:

<Float> +/- <Float>i

A complex number has a real part and an imaginary part. Each part is a floating point number. The imaginary part is followed by the letter i to indicate it is complex.

Example:

11 + 22i
32i
79.8i
4.2 - 2.3i
1e-3 - 2.2i
2 + 3.45e-6i

The complex value i must be represented by the number 1i (or 0+1i if you prefer) in your programs. You cannot use the simpler representation i since that would conflict with a variable named i.

 

Copyright © 2004-2016 Hilbert, LLC
All rights reserved