🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7831

formating big numbers

#7831
From: Calvin R. Smith
Date: Thu, 17 May 2001 18:54
12 lines
1472 bytes
For primitive data types I can use NumberFormat to format the number for the
given local However on a BigInteger the NumberFormater gives up part way
through. ex:
number:
1234567891234567891234567891234567891234567891234567891234567891234567891234
56789123456789123456789123456799
is formated as:
123,456,789,123,456,800,000,000,000,000,000,000,000,000,000,000,000,000,000,
000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000

Is there another formater that works correctly with big numbers?  I really
don't want to write a formater for each locale :(
Technical Details
Message-ID: <3b041eb5$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!sn-xit-04!supernews.com!news.infoave.net!arclight.uoregon.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d9346e2676f83aed,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-17 12:16:08 PST
From: "Calvin R. Smith" <calvinrsmith@hotmail.com>
Newsgroups: borland.public.jbuilder.java.language
Subject: formating big numbers
Date: Thu, 17 May 2001 12:54:20 -0600
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 207.201.104.90
Message-ID: <3b041eb5$1_1@dnews>
X-Trace: dnews 990125749 207.201.104.90 (17 May 2001 11:55:49 -0700)
Path: arc1-ca.pugleaf.net!archiver1.sj.google.com!newsfeed.google.com!sn-xit-03!sn-xit-04!supernews.com!news.infoave.net!arclight.uoregon.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews