private static string floatArrayToString(float[] array, int num) { StringBuilder stringBuilder = new StringBuilder().append(array.Length); int num2 = array.Length; for (int i = 0; i < num2; i++) { float num3 = array[i]; if (num == 3) { stringBuilder.append(' ').append(DataUtil.formatDouble((double)num3, 10, 5)); } else if (num == 1) { FloatConverter floatConverter = new FloatConverter(); int num4 = FloatConverter.ToInt(num3, ref floatConverter); stringBuilder.append(" 0x").append(Integer.toHexString(num4)); } else if (num == 2) { stringBuilder.append(' ').append(Utilities.doubleToScientificString((double)num3, 8)); } } return(stringBuilder.toString()); }
public static int FloatToRawIntBits(float f) { FloatConverter converter = new FloatConverter(); return(FloatConverter.ToInt(f, ref converter)); }
public static float swapFloat(float floatValue) { FloatConverter floatConverter = new FloatConverter(); return(FloatConverter.ToFloat(Utilities.swapInteger(FloatConverter.ToInt(floatValue, ref floatConverter)), ref floatConverter)); }
public virtual void write(float f) { FloatConverter floatConverter; this.write(FloatConverter.ToInt(f, ref floatConverter)); }