The NumberDecimalSeparator for the culture ru-RU is "," whereas in en-US, it's ".". Some cultures use a comma, some use a period. If you need something, well, Invariant, try InvariantCulture:
float.TryParse("0.58", NumberStyles.Any, CultureInfo.InvariantCulture, out f);
网友评论