Article View: borland.public.jbuilder.java.language
Article #8416* Pad a digit
From: ComputerGuy
Date: Tue, 20 Mar 2001 16:42
Date: Tue, 20 Mar 2001 16:42
5 lines
1033 bytes
1033 bytes
I want a function to pad a digit with preceding zeroes of a predetermined length. For example, Pad(345,5) will give me "00345" and Pad(4,5) will give me "00004". Is there a Java function that does this?
Technical Details
Message-ID:
<3ab78784$1_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!209.167.113.248Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,594a95011dde651b,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-23 03:49:29 PST From: "ComputerGuy" <computerguy@hotmail.com> Newsgroups: borland.public.jbuilder.java.language Subject: * Pad a digit Date: Tue, 20 Mar 2001 11:42:07 -0500 Lines: 7 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: 209.167.113.248 Message-ID: <3ab78784$1_2@dnews> X-Trace: 20 Mar 2001 08:38:28 -0800, 209.167.113.248 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!209.167.113.248