Click here to Skip to main content
15,850,299 members
Home / Discussions / Java
   

Java

 
Question<pre>Problems enlarging Eclipse icons Pin
BrunoV202219-Nov-23 11:57
BrunoV202219-Nov-23 11:57 
AnswerRe: <pre>Problems enlarging Eclipse icons Pin
jschell5-Dec-23 6:27
jschell5-Dec-23 6:27 
QuestionHow to convert string to double with trailing zeros after decimal Pin
Member 161354338-Nov-23 2:46
Member 161354338-Nov-23 2:46 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Richard MacCutchan8-Nov-23 3:07
mveRichard MacCutchan8-Nov-23 3:07 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Member 161354338-Nov-23 3:23
Member 161354338-Nov-23 3:23 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Richard MacCutchan8-Nov-23 3:35
mveRichard MacCutchan8-Nov-23 3:35 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
Dave Kreskowiak8-Nov-23 4:20
mveDave Kreskowiak8-Nov-23 4:20 
GeneralRe: How to convert string to double with trailing zeros after decimal Pin
jschell8-Nov-23 7:12
jschell8-Nov-23 7:12 
Member 16135433 wrote:
the same need to be converted to double and send with out ignoring trailing zeros


Breaking that down into steps
1. String arrives
2. Convert to double
3. Something happens????
4. Then "send".

Unless something happens at step 3 which you did not define then of course you do not need to convert it in the first place.

That is because "send" in the modern world always means a string. XML, HTML, Json, even many other representations in TCP/IP will always be a string.

The only time when that is not true is when you are using a binary format and there can be all sorts for complications with that (precision, big versus, little, etc)

So presuming there is in fact a real need to handle it as a double then when you "send" it you must format it correctly. Just as though you started with a double in first place. In other words how it arrives is irrelevant.
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Ralf Meier8-Nov-23 9:02
professionalRalf Meier8-Nov-23 9:02 
AnswerRe: How to convert string to double with trailing zeros after decimal Pin
Dave Kreskowiak8-Nov-23 3:23
mveDave Kreskowiak8-Nov-23 3:23 
QuestionHow to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 1:54
Valentinor16-Oct-23 1:54 
AnswerRe: How to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 2:42
Valentinor16-Oct-23 2:42 
AnswerRe: How to use JNI without setting Environment Variables Pin
jschell16-Oct-23 5:58
jschell16-Oct-23 5:58 
GeneralRe: How to use JNI without setting Environment Variables Pin
Valentinor16-Oct-23 6:41
Valentinor16-Oct-23 6:41 
GeneralRe: How to use JNI without setting Environment Variables Pin
jschell17-Oct-23 6:47
jschell17-Oct-23 6:47 
GeneralRe: How to use JNI without setting Environment Variables Pin
Valentinor17-Oct-23 20:26
Valentinor17-Oct-23 20:26 
QuestionSending file though socket as byte[] Pin
JohnCodding25-Sep-23 21:52
JohnCodding25-Sep-23 21:52 
GeneralRe: Sending file though socket as byte[] Pin
JohnCodding25-Sep-23 22:33
JohnCodding25-Sep-23 22:33 
GeneralRe: Sending file though socket as byte[] Pin
Richard MacCutchan25-Sep-23 23:32
mveRichard MacCutchan25-Sep-23 23:32 
GeneralRe: Sending file though socket as byte[] Pin
JohnCodding26-Sep-23 0:44
JohnCodding26-Sep-23 0:44 
GeneralRe: Sending file though socket as byte[] Pin
Richard MacCutchan26-Sep-23 0:58
mveRichard MacCutchan26-Sep-23 0:58 
GeneralRe: Sending file though socket as byte[] Pin
JohnCodding26-Sep-23 1:53
JohnCodding26-Sep-23 1:53 
GeneralRe: Sending file though socket as byte[] Pin
jschell3-Oct-23 5:42
jschell3-Oct-23 5:42 
GeneralRe: Sending file though socket as byte[] Pin
JohnCodding13-Oct-23 0:35
JohnCodding13-Oct-23 0:35 
GeneralRe: Sending file though socket as byte[] Pin
jschell13-Oct-23 8:19
jschell13-Oct-23 8:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.