Top
Back: number declarations
Forward: number operations
FastBack: module
FastForward: package
Up: number
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.13.2 number expressions

A number expression is:

  1. a rational number (there are NO spaces allowed inside a rational number, see int expressions)
  2. a floating point number (if the coefficient field is real):
    <digits>.<digits>e<sign><digits>
  3. an identifier of type number
  4. a function returning number
  5. an int expression (see Type conversion and casting)
  6. number expressions combined by the arithmetic operations +, -, *, /, ^, or **.
  7. a type cast to number


Example:
 
See Type conversion and casting; ring.


Top Back: number declarations Forward: number operations FastBack: module FastForward: package Up: number Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.