private static string GetScientificFormat(double value, Calculator calc) { return(GetFormat(value, "e" + calc.FixedDecimalDigits)); }
public override string ToString(Calculator calc) { return(Format(this.AsDouble, calc)); }
internal void Save(INode valueNode, Calculator calc) { valueNode.SetValue(nameof(this.ValueType), this.ValueType); valueNode.SetValue("EntryValue", this.GetEntryValue(calc)); }
public virtual IEnumerable <DisplayFormat> GetAllDisplayFormats(Calculator calc) { return(new[] { new DisplayFormat(this.ToString(calc)) }); }
public virtual string GetEntryValue(Calculator calc) { return(this.ToString(calc)); }
public virtual string ToString(Calculator calc) { return(this.ToString() ?? string.Empty); }