예제 #1
0
 /// <summary>
 /// Converts a double to S7 Real (4 bytes)
 /// </summary>
 public static byte[] ToByteArray(double value) => Real.ToByteArray((float)value);
예제 #2
0
 /// <summary>
 /// Converts a S7 Real (4 bytes) to double
 /// </summary>
 public static double FromByteArray(byte[] bytes) => Real.FromByteArray(bytes);