From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 28 Jul 93 14:22:04 GMT From: haven.umd.edu!news.umbc.edu!nobody@uunet.uu.net (Mike Berman) Subject: Re: Underscore ("_") in numeric literals Message-ID: <23622cINN1er@umbc4.umbc.edu> List-Id: dag@control.lth.se (Dag Bruck) writes: | I have received about 20 replies, all in favour. Is there nobody in | the Ada community that thinks that it is a useless feature? It seems | to rarely used for the simple reason that people rarely type big | numbers. The use of embedded underscores in numeric literals is probably statistically small, but the aid to understanding is invaluable. The best application that I've seen is in engineering applications, where large constant values (e.g. Pi) are defined via named numbers so that they support any degree of desired accuracy. Mostly, these values are found in standard engineering tables, where the digits are grouped (usually in fours, I think). Duplicating this same grouping by using the underscores makes it quite easy to verify the code against the reference. -- Mike Berman University of Maryland, Baltimore County Fastrak Training, Inc. berman@umbc.edu (301)924-0050 The views represented in the above post are my own.