|
Java Primitives | |||||||
---|---|---|---|---|---|---|---|
Type | Signed? | Bits | Bytes | Digits | Lowest | Highest | Mnemonic |
Boolean | n/a | 1 | 1 | 1 | false | true | zero/one |
char | unsigned Unicode | 16 | 2 | 4:5 | '\u0000' [0] aka Character. MIN_VALUE | '\uffff' [216-1] aka Character. MAX_VALUE | Unicode chars are twice as big as C’s. |
byte | signed | 8 | 1 | 2:3 | -128 [-27] aka Byte. MIN_VALUE | +127 [27-1]aka Byte. MAX_VALUE | Bytes are signed, so half the usual 255 range. |
short | signed | 16 | 2 | 4:5 | -32,768 [-215] aka Short. MIN_VALUE | +32,767 [215-1] aka Short. MAX_VALUE | 32K |
int | signed | 32 | 4 | 9:10 | -2,147,483,648 [-231] aka Integer.MIN_VALUE aka -2 gig, roughly -2 billion | +2,147,483,647 [231-1] aka Integer. MAX_VALUE. aka 2 gig, roughly 2 billion | 2 gig |
long | signed | 64 | 8 | 1:19 | -9,223,372,036,854,775,807 [-263] aka Long. MIN_VALUE about -9×1018 | 9,223,372,036,854,775,808 [+263-1] aka Long. MAX_VALUE about 9×1018 | 9 exabytes, or 9 billion gig |
float | signed exponent and mantissa | 32 | 4 | 7 | ±1.40129846432481707e-45 aka Float. MIN_VALUE | ±3.40282346638528860e+38 aka Float. MAX_VALUE or roughly ±2127 with about 7 significant digits of accuracy. A float can exactly represent integers in the range -224 to +224. |
rough, compact float |
double | signed exponent and mantissa | 64 | 8 | 16 | ±4.94065645841246544e-324 aka Double. MIN_VALUE | ±1.79769313486231570e+308 aka Double. MAX_VALUE or roughly ±21023 with 15 significant digits of accuracy, almost 16 with 15.95 significant digits. A double can exactly represent integers in the range -253 to +253. |
high precision float |
Immutable Primitives | Immutable Objects |
---|---|
Boolean | Boolean |
ordinary signed byte | Byte |
unsigned byte | Byte |
short | Short |
char | Character |
int | Integer |
long | Long |
float | Float |
double | Double |
char[] | String |
Package | Version | Released | Licence | Language | Notes | ||
---|---|---|---|---|---|---|---|
Conversion Amanuensis |
5.5 | 2011-12-30 | free | Java |
❘ precis
❘ screenshot
❘ browse source repository
for the current version of Conversion Amanuensis. Show you how to write Java conversion code, e.g. String to double.
962K
zip for Conversion Amanuensis Java source, compiled class files, jar and documentation to run on your own machine either as an application or an Applet.
Runs on any OS that supports Java e.g. W2K, XP, W2003, Vista, W2008, W7-32, W7-64, W8-32, W8-64, W2012, W10-32, W10-64, Linux, LinuxARM, LinuxX86, LinuxX64, Ubuntu, Solaris, SolarisSPARC, SolarisSPARC64, SolarisX86, SolarisX64 and OSX. First install the most recent Java. To install, extract the zip download with WinZip, (or similar unzip utility) into any directory you please, often J:\ — ticking off the use folder names option. To check out the corresponding source from the Subversion repository, use the TortoiseSVN repo-browser to After you have installed the jar, you can run it as an application. Type: java -jar J:\com\mindprod\converter\converter.jar
adjusting as necessary to account for where the jar file is. download ASP PAD XML program description for the current version of Conversion Amanuensis. Conversion Amanuensis is free. Full source included. You may even include the source code, modified or unmodified in free/commercial open source/proprietary programs that you write and distribute. Non-military use only. |
||
This page is posted |
http://mindprod.com/applet/converter.html | |
Optional Replicator mirror
|
J:\mindprod\applet\converter.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[18.222.43.11] |
| |
Feedback |
You are visitor number | |