Handbook
Glossary
digits ( n digits -- string )
Time-Based One-Time Passwords
Prev:
totp* ( count key hash -- n )
Vocabulary
totp
Inputs
n
a
number
digits
a
number
Outputs
string
a
string
Word description
Convert integer
n
into a decimal string of length
digits
, padding with zeroes on the left if necessary. If the string representation of
n
is longer than
digits
, return the rightmost part of the requested length.
Definition
USING:
kernel
math.parser
sequences
;
IN:
totp
:
digits
( n digits -- string )
[
number>string
]
dip
[
48
pad-head
]
keep
tail*
;