BaseForm::basf IntegerString::basf

更多信息

  • This message is generated when the second argument in BaseForm does not fall within the required range.
  • The maximum value of the second argument is determined by the number of characters available to represent digits. Usually this maximum is 36.
  • The functions IntegerDigits and RealDigits may be helpful for bases outside of this range.
  • Off[message] switches off the message; On[message] switches it on. For example: Off[BaseForm::basf].

范例

基本范例  (1)

The second argument in BaseForm is not an integer in the required range:

This shows a typical use of BaseForm:

You can use RealDigits to get the digits in a base outside of the range used by BaseForm: