convert 2 « decimal « Java Data Type Q&A

Home
Java Data Type Q&A
1.bigdecimal
2.biginteger
3.bit
4.Boolean
5.byte
6.Calendar
7.cast
8.character
9.Date Time
10.Date Time Format
11.decimal
12.Development
13.double
14.enum
15.float
16.hexadecimal
17.Integer
18.Number
19.Number Format
20.primitive
21.SimpleDateFormat
22.string
23.StringBuffer
24.StringBuilder
25.StringTokenizer
26.substring
27.TimeZone
Java Data Type Q&A » decimal » convert 2 

1. Convert decimal to hexadecimal.    forums.oracle.com

I need a function that change an array of bytes in decimal to an array of bytes in hexadecimal for the school. I can't use any function of java, I have to find an algorithm that do this. Only i can manage bytes or integer. That can't be done. I have already told you that a byte is a byte. You ...

2. Converting a 9 digit number to packed decimal digit S9(15)-COMP3    forums.oracle.com

user12273111 wrote: My query is that i have a nine digit number.I need to convert it to packed decimal digit S9(15)-COMP3 format. Is there any java function availabe for the same?If yes,please provide it or some other helpful link. Not that I'm aware of, but a Google of "java conversion to packed decimal" threw up lots of attempts by others. The ...

3. Regarding Double Conversion & Decimal Precision    forums.oracle.com

Thanks for the response...But the actual problem is to show the the 2 numbers after decimal. Doesn't matter it's in exponential form or not. I'm passing string there so to convert it into decimal I'm trying to parse it first & obviously that is needed. Please anymore solution to parse the string so that I can restrict the precision upto 2 ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.