Website hosting and domain hosting service by

 Back to Index

2.4.6 Imaginary literals

Imaginary literals are described by the following lexical definitions:


imagnumber  ::=  (floatnumber | intpart) ("j" | "J")
Download entire grammar as text.

An imaginary literal yields a complex number with a real part of 0.0. Complex numbers are represented as a pair of floating point numbers and have the same restrictions on their range. To create a complex number with a nonzero real part, add a floating point number to it, e.g., (3+4j). Some examples of imaginary literals:


3.14j   10.j    10j     .001j   1e100j  3.14e-10j




2002-2004 Website Hosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to offers cheap domain registration, domain name transfer and domain search services   Cheap domain name - Cheap domain name registration service including free domain hosting services  

Domain registration : Buy domain name or register domain name from $5.95/year only