using System; public class Temperature : IFormattable { private decimal m_Temp; public Temperature(decimal temperature) { this.m_Temp = temperature; } public decimal Celsius { get { return this.m_Temp; } } public decimal Kelvin { get { return this.m_Temp + 273.15m; } } public decimal...
toBest({ cutOffNumber: 10 }), expected = { val: 900, unit: 'cm', Expand All @@ -62,7 +62,7 @@ test('pre-cut off number', () => { }); test('post-cut off number', () => { var actual = convert(10000).from('mm').toBest({ cutOffNumber: 10 }), const actual = ...
using System; public class Temperature : IFormattable { private decimal m_Temp; public Temperature(decimal temperature) { this.m_Temp = temperature; } public decimal Celsius { get { return this.m_Temp; } } public decimal Kelvin { get { return this.m_Temp + 273.15m; } } public decimal...