OpenersNotesSection(Spacer1)Details

This message is generated when the second argument in (RefLink[IntegerDigits, paclet:ref/IntegerDigits]) or (RefLink[IntegerExponent, paclet:ref/IntegerExponent]) is not an integer or is less than 2.

(RefLink[Off, paclet:ref/Off])[message] switches off the message; (RefLink[On, paclet:ref/On])[message] switches it on. For example: (RefLink[Off, paclet:ref/Off])[IntegerDigits::ibase].

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

An error occurs because the second argument is not an integer:

IntegerDigits[57,1.5]

This shows valid arguments in (RefLink[IntegerDigits, paclet:ref/IntegerDigits]):

IntegerDigits[57,2]

You can use (RefLink[RealDigits, paclet:ref/RealDigits]) to get digits in a base that is not an integer:

RealDigits[57.0,1.5]

Zero is not a valid value for the second argument in (RefLink[IntegerExponent, paclet:ref/IntegerExponent]):

IntegerExponent[30!,0]

This shows valid arguments in (RefLink[IntegerExponent, paclet:ref/IntegerExponent]):

IntegerExponent[30!,5]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[IntegerDigits, paclet:ref/IntegerDigits])  ▪  (RefLink[IntegerExponent, paclet:ref/IntegerExponent])  ▪  (RefLink[IntegerLength, paclet:ref/IntegerLength])}})}})