public static float AsFloat(this int value) { #if NETSTANDARD2_0 return(Netstandard2Extensions.Int32BitsToSingle(value)); #else return(BitConverter.Int32BitsToSingle(value)); #endif }
public static int AsInt(this float value) { #if NETSTANDARD2_0 return(Netstandard2Extensions.SingleToInt32Bits(value)); #else return(BitConverter.SingleToInt32Bits(value)); #endif }