/// <summary> /// Converts a value expressed in the current numeral system into another numeral system. Can handle values up to Int64.MaxValue. /// </summary> /// <param name="targetNumeralSystem">The numeral system to convert to.</param> /// <param name="value">The value expressed in the current numeral system.</param> /// <param name="fixedLength">If given, result will have at least the given length, padded with '0' symbols on the left.</param> /// <param name="groupSize">To group symbols together, give a groupSize.</param> /// <param name="groupSeparator">String to separate groups.</param> /// <returns>The value converted to the target numeral system.</returns> public string ConvertTo(NumeralSystem targetNumeralSystem, string value, int fixedLength = 0, int groupSize = 0, string groupSeparator = " ") { return(targetNumeralSystem.From(this.ParseInt64(value), fixedLength, groupSize, groupSeparator)); }
/// <summary> /// Creates a numeral value. /// </summary> public NumeralValue(NumeralSystem system, long value) : this(system, system.From(value)) { }