次の方法で共有


BitConverter.GetBytes メソッド (Single)

指定した単精度浮動小数点値をバイト配列として返します。

Overloads Public Shared Function GetBytes( _
   ByVal value As Single _) As Byte()
[C#]
public static byte[] GetBytes(floatvalue);
[C++]
public: static unsigned char GetBytes(floatvalue)  __gc[];
[JScript]
public static function GetBytes(
   value : float) : Byte[];

パラメータ

  • value
    変換する数値。

戻り値

長さ 4 のバイト配列。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

BitConverter クラス | BitConverter メンバ | System 名前空間 | BitConverter.GetBytes オーバーロードの一覧