I\'m converting double to float using ye old float myFloat = (float)myDouble.
float myFloat = (float)myDouble
This does however sometimes result in \"Infinity\", which is not good for
Use this Function
public static float DoubleToFloat(double dValue) { if (float.IsPositiveInfinity(Convert.ToSingle(dValue))) { return float.MaxValue; } if (float.IsNegativeInfinity(Convert.ToSingle(dValue))) { return float.MinValue; } return Convert.ToSingle(dValue); }