BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 10-15-2009, 03:19 PM   #1 (permalink)
New Member
 
Join Date: Oct 2009
Model: 9500
PIN: N/A
Carrier: verizon
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default number format, floating point

Please Login to Remove!

Given a pattern "000000.000" and a double with value 123.78
I need output of "000123.780".

Overall I need to support format descriptors f,g,E.

I have looked at the threads on this and it seems that
MessageFormatter does not support numeric classes.

One message I saw at
said to check for custom formatting methods here...
hypertextprotocol world wide web horstmann subdir corejava subdir Format.java

This code has a license which is non-commercial only
(and it's sun, they don't mess around.)
It would be a substantial pain to hand roll this code.

Tips, code, bsd open source refs?


Help me please!

thanks so much.
Offline  
Old 10-16-2009, 09:12 AM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Jan 2006
Model: LEZ10
OS: 10.0.10
Carrier: Rogers CA
Posts: 1,704
Post Thanks: 20
Thanked 77 Times in 68 Posts
Default

You could have a look at printf and friends from the GNU standard C library. Would still be quite a bit of work but less than starting from scratch.
__________________
My other Blackberry is a PlayBook.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Lot of 2 GVI GV-Q4CHRTC NTSC 4 Channel Real Time Color Quad Processor Switcher
$39.99
Lot of 2 GVI GV-Q4CHRTC NTSC 4 Channel Real Time Color Quad Processor Switcher  pictureAllen-Bradley 1769-L32E ser B Compactlogix Processor **NEW IN OPEN BOX* Mfg 2015
$1095.0
Allen-Bradley 1769-L32E ser B Compactlogix Processor **NEW IN OPEN BOX* Mfg 2015 pictureUsed SIEMENS CPU 211 6ES7211-0BA23-0XB0 PLC Module Tested In Good Condition
$93.0
Used SIEMENS CPU 211 6ES7211-0BA23-0XB0 PLC Module Tested In Good Condition picture1Pc Used SIEMENS 6ES7214-1HG31-0XB0 CPU MODULE 6ES72141HG310XB0 Tested Fully
$303.0
1Pc Used SIEMENS 6ES7214-1HG31-0XB0 CPU MODULE 6ES72141HG310XB0 Tested Fully pictureUsed Siemens CP341 communications processor 6ES7 341-1CH02-0AE0 Tested Fully
$703.0
Used Siemens CP341 communications processor 6ES7 341-1CH02-0AE0 Tested Fully picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.