home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.fortran      Putting John Backus on a giant pedestal      5,127 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,634 of 5,127   
   Gary Scott to Lawrence D'Oliveiro   
   Re: Number Literal Syntax   
   24 Feb 24 12:40:37   
   
   From: garylscott@sbcglobal.net   
      
   On 2/23/2024 11:52 PM, Lawrence D'Oliveiro wrote:   
   > I see that Fortran uses the underscore in integer and real literals as a   
   > special suffix delimiter, followed by a code number or name to indicate   
   > the type of the literal. Pity they didn’t follow the convention in some   
   > other languages, where this is ignored so it can be used as a grouping   
   > delimiter, just for readability, to avoid the “drowning in digits”   
   effect.   
   > E.g. in Python this is a valid integer literal   
   >   
   >      18_446_744_073_709_551_615   
   >   
   > and this is a valid real literal:   
   >   
   >      3.141_592_653_589_793   
      
   In fixed form, probably 3.141 592 653 589 793   
      
   might have worked   
      
   I don't find this "drowning" problem to be a problem.  In any case, the   
   common symbol for grouping numbers is the comma, although not typically   
   after the decimal point.   
      
   Sorry for the direct email sent to MM.  Thunderbird changed the menu   
   such that the first option (reply (meaning reply to sender, not reply))   
   goes to email and the second option "followup" goes to group.  I think   
   that's dumb, but you'd think I could remember it from one post to the   
   next :(   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca