mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
27
help/digits
Normal file
27
help/digits
Normal file
@@ -0,0 +1,27 @@
|
||||
NAME
|
||||
digits - return number of digits in an integer or integer part
|
||||
|
||||
SYNOPSIS
|
||||
digits(x)
|
||||
|
||||
TYPES
|
||||
x real
|
||||
|
||||
return integer
|
||||
|
||||
DESCRIPTION
|
||||
For real x, digits(x) returns the number of digits in the decimal
|
||||
representation of int(abs(x)).
|
||||
|
||||
EXAMPLE
|
||||
> print digits(0), digits(0.0123), digits(3.7), digits(-27), digits(-99.7)
|
||||
1 1 1 2 2
|
||||
|
||||
LIMITS
|
||||
none
|
||||
|
||||
LIBRARY
|
||||
long qdigits(NUMBER *x)
|
||||
|
||||
SEE ALSO
|
||||
places
|
Reference in New Issue
Block a user