コード例 #1
0
 /// <summary>
 /// Converts a value expressed in the current numeral system into another numeral system. Can handle values of any size.
 /// </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 ConvertBigTo(NumeralSystem targetNumeralSystem, string value, int fixedLength = 0, int groupSize = 0, string groupSeparator = " ")
 {
     return(targetNumeralSystem.FromBigInteger(this.ParseBigInteger(value), fixedLength, groupSize, groupSeparator));
 }