mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-01-03 16:13:25 +08:00
Use invariant decimal separator for NumberFormatString
This commit is contained in:
parent
dabf92a1a5
commit
20018a9ba9
@ -20,7 +20,7 @@ namespace UnityExplorer
|
||||
// Helper for formatting float/double/decimal numbers to maximum of 4 decimal points.
|
||||
// And also for formatting a sequence of those numbers, ie a Vector3, Color etc
|
||||
|
||||
public static readonly string NumberFormatString = $"0{CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator}####";
|
||||
public static readonly string NumberFormatString = $"0.####";
|
||||
private static readonly Dictionary<int, string> numSequenceStrings = new Dictionary<int, string>();
|
||||
|
||||
public static string FormatDecimalSequence(params object[] numbers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user