MUD-Dev
mailing list archive
[ Other Periods
| Other mailing lists
| Search
]
Date:
[ Previous
| Next
]
Thread:
[ Previous
| Next
]
Index:
[ Author
| Date
| Thread
]
[MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?
In message: <Pine.LNX.3.96.980907143034.2414A-100000#shamen,cyberhighway.net>
Ben Greear <greear#cyberhighway,net> writes:
>
>On Mon, 7 Sep 1998, Ola Fosheim Grxstad wrote:
>>
>> Does Java provide functions for converting floats to raw bytes?
>
>Yes. Look in the Double and Float classes:
>
>This is from the JavaDocs for the JDK.
>
>Float.floatToIntBits()
Probably more useful are the java.io.DataInput and java.io.DataOutput
interfaces, and the corresponding Data*Stream classes.
- Alex
- Thread context:
- [MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?, (continued)
- [MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?,
Ben Greear greear#cyberhighway,net, Mon 07 Sep 1998, 17:43 GMT
- [MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?,
Richard Woolcock KaVir#dial,pipex.com, Mon 07 Sep 1998, 18:07 GMT
- [MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?,
Ola Fosheim Grøstad olag#ifi,uio.no, Mon 07 Sep 1998, 20:44 GMT
- [MUD-Dev] Re: [CODE QUESTION] How to encode floats into bytes?,
Adam Wiggins adam#angel,com, Tue 08 Sep 1998, 19:26 GMT
[ Other Periods
| Other mailing lists
| Search
]