1
0
mirror of https://github.com/DarthAffe/OBD.NET.git synced 2025-12-12 08:48:30 +00:00

Improved floatingpoint-formating of degree and degree celsius data

This commit is contained in:
Darth Affe 2020-08-11 20:28:19 +02:00
parent 3faefc97ca
commit 17aa5284c3
2 changed files with 12 additions and 0 deletions

View File

@ -19,5 +19,11 @@
{ }
#endregion
#region Methods
public override string ToString() => (IsFloatingPointValue ? Value.ToString("0.00") : Value.ToString()) + (Unit ?? string.Empty);
#endregion
}
}

View File

@ -19,5 +19,11 @@
{ }
#endregion
#region Methods
public override string ToString() => (IsFloatingPointValue ? Value.ToString("0.00") : Value.ToString()) + (Unit ?? string.Empty);
#endregion
}
}