File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -574,11 +574,13 @@ The available presentation types for :class:`float` and
574574   |  ``'%' `` |  Percentage. Multiplies the number by 100 and displays    | 
575575   |          |  in fixed (``'f' ``) format, followed by a percent sign.   | 
576576   +---------+----------------------------------------------------------+ 
577-    |  None    |  For :class: `float ` this is the same as  ``'g' ``, except    | 
577+    |  None    |  For :class: `float ` this is like  the ``'g' `` type , except | 
578578   |          |  that when fixed-point notation is used to format the     | 
579579   |          |  result, it always includes at least one digit past the   | 
580-    |          |  decimal point. The precision used is as large as needed  | 
581-    |          |  to represent the given value faithfully.                 | 
580+    |          |  decimal point, and switches to the scientific notation   | 
581+    |          |  when ``exp >= p - 1 ``.  When the precision is not        | 
582+    |          |  specified, the latter will be as large as needed to      | 
583+    |          |  represent the given value faithfully.                    | 
582584   |          |                                                           | 
583585   |          |  For :class: `~decimal.Decimal `, this is the same as       | 
584586   |          |  either ``'g' `` or ``'G' `` depending on the value of      | 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments