User:Template:Sigfig

Example input:

Empty string:

Is there a dot?

Dotless number:

Counting nonzero digits:

Nonzero digits:

Position of the first significant digit:

Position of the last nonzero digit:

Position of the last digit:

Special case: zero:

Number of significant digits in :

Template actual operation: