Electron microscopy
 
Integer, Fractions, Decimal, Digits, Floating
- Integrated Circuits -
- An Online Book -
Integrated Circuits                                                                                   http://www.globalsino.com/ICs/        


=================================================================================

 

=========================================================

Fractions: Code:
         Fractions
Output:         
         Fractions

=========================================================

Round to different decimal places: Code:
         Round to different decimal places
Output:
         Round to different decimal places

=========================================================

Round decimals up: Code.
         Round to different decimal places
Output:
         3
         3

=========================================================

Round decimals down: Code.
         Round to different decimal places
Output:
         2
         2

=========================================================

Integer: Code:
         Fractions
Output:         
         Fractions

=========================================================

Integer: Code:
         Fractions
Output:         
         3

=========================================================

Decimal with round() function rounding decimal places up and down: Code:
         Fractions
Output:         
         5.99


         
         
         
         
         

 

 

=================================================================================