Posts

Showing posts with the label Numeric Literals in Python

Numeric Literals in Python

                                                              Numeric Literals in Python  *          A  numeric literal is a literal containing only the digits 0-9 ,  an optional sign character (+ or - ) ,  and a possible decimal point.  Commas are never used in numeric literals. *          If a numeric literal does not contain a decimal point,  then it  denotes an integer (int) value.  *          If a numeric literal contains a decimal point, then it denotes a floating-point (float) value. Limits of Range in Floating-Point Representation  *          There is no limit to the size of an integer that can be represented in Python.  But  floating-point values have both a limited range ...