refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -6,15 +6,15 @@ namespace Cryville.Common {
|
||||
public T Value { get; set; }
|
||||
public string Unit { get; set; }
|
||||
|
||||
public Qualified(string unit) : this(default(T), unit) { }
|
||||
public Qualified(string unit) : this(default, unit) { }
|
||||
public Qualified(T value, string unit) {
|
||||
Value = value;
|
||||
Unit = unit;
|
||||
}
|
||||
|
||||
public override string ToString() { return ToString("G3"); }
|
||||
public string ToString(string format) { return ToString(format, null); }
|
||||
public string ToString(string format, IFormatProvider formatProvider) {
|
||||
public override readonly string ToString() { return ToString("G3"); }
|
||||
public readonly string ToString(string format) { return ToString(format, null); }
|
||||
public readonly string ToString(string format, IFormatProvider formatProvider) {
|
||||
double value = Value.ToDouble(formatProvider);
|
||||
int expIndex = (int)System.Math.Log10(value) / 3;
|
||||
if (expIndex == 0) {
|
||||
|
Reference in New Issue
Block a user