Thread: C# основной форум/Convert a decimal to a byte array and display

Convert a decimal to a byte array and display

www.navioo.com/csharp/examples/Convert_a_decimal_to_a_byte_array_and_display_151.html





Re: Convert a decimal to a byte array and display

 // Assume that pdblDoubles is your array of doubles.


double [] pdblDoubles = {-10.2D};


byte[] pbytBytes = new byte[Buffer.ByteLength(pdblDoubles)];


// Now copy the bytes from the double array to the byte array.


Buffer.BlockCopy(pdblDoubles, 0, pbytBytes, 0, pbytBytes.Length);


 


 


 


 

-- 07/03/2009 18:47:41: post edited by sergey.





Re: Convert a decimal to a byte array and display

http://blogs.clearscreen.com/migs/archive/2006/12/27.aspx

-- 07/03/2009 18:49:38: post edited by sergey.





Re: Convert a decimal to a byte array and display

Understanding floating point values in a Delphi environmentwww.guidogybels.net/index.html


 





Re: Convert a decimal to a byte array and display

Interpreting Intel 80-bit Long Double Byte Arrays


www.codeproject.com/KB/cs/longdouble.aspx