Grammar fixes in the docstrings
This commit is contained in:
parent
bf7c342426
commit
9c113b5264
1 changed files with 8 additions and 8 deletions
|
|
@ -130,7 +130,7 @@ template mantissaDigits*(T : typedesc[float32]) : int = FLT_MANT_DIG
|
||||||
## Number of digits (in base ``floatingPointRadix``) in the mantissa
|
## Number of digits (in base ``floatingPointRadix``) in the mantissa
|
||||||
## of 32-bit floating-point numbers.
|
## of 32-bit floating-point numbers.
|
||||||
template digits*(T : typedesc[float32]) : int = FLT_DIG
|
template digits*(T : typedesc[float32]) : int = FLT_DIG
|
||||||
## Number of decimal digits that can be represented for the
|
## Number of decimal digits that can be represented in a
|
||||||
## 32-bit floating-point type without losing precision.
|
## 32-bit floating-point type without losing precision.
|
||||||
template minExponent*(T : typedesc[float32]) : int = FLT_MIN_EXP
|
template minExponent*(T : typedesc[float32]) : int = FLT_MIN_EXP
|
||||||
## Minimum (negative) exponent for 32-bit floating-point numbers.
|
## Minimum (negative) exponent for 32-bit floating-point numbers.
|
||||||
|
|
@ -143,20 +143,20 @@ template max10Exponent*(T : typedesc[float32]) : int = FLT_MAX_10_EXP
|
||||||
## Maximum (positive) exponent in base 10 for 32-bit floating-point
|
## Maximum (positive) exponent in base 10 for 32-bit floating-point
|
||||||
## numbers.
|
## numbers.
|
||||||
template minimumPositiveValue*(T : typedesc[float32]) : float32 = FLT_MIN
|
template minimumPositiveValue*(T : typedesc[float32]) : float32 = FLT_MIN
|
||||||
## The smallest positive (nonzero) number that can be hold by a
|
## The smallest positive (nonzero) number that can be represented in a
|
||||||
## 32-bit floating-point type.
|
## 32-bit floating-point type.
|
||||||
template maximumPositiveValue*(T : typedesc[float32]) : float32 = FLT_MAX
|
template maximumPositiveValue*(T : typedesc[float32]) : float32 = FLT_MAX
|
||||||
## The largest positive number that can be hold by a 32-bit
|
## The largest positive number that can be represented in a 32-bit
|
||||||
## floating-point type.
|
## floating-point type.
|
||||||
template epsilon*(T : typedesc[float32]): float32 = FLT_EPSILON
|
template epsilon*(T : typedesc[float32]): float32 = FLT_EPSILON
|
||||||
## The difference between 1.0 and the smallest number greater than
|
## The difference between 1.0 and the smallest number greater than
|
||||||
## 1.0 that can be represented using a 32-bit floating-point type.
|
## 1.0 that can be represented in a 32-bit floating-point type.
|
||||||
|
|
||||||
template mantissaDigits*(T : typedesc[float64]) : int = DBL_MANT_DIG
|
template mantissaDigits*(T : typedesc[float64]) : int = DBL_MANT_DIG
|
||||||
## Number of digits (in base ``floatingPointRadix``) in the mantissa
|
## Number of digits (in base ``floatingPointRadix``) in the mantissa
|
||||||
## of 64-bit floating-point numbers.
|
## of 64-bit floating-point numbers.
|
||||||
template digits*(T : typedesc[float64]) : int = DBL_DIG
|
template digits*(T : typedesc[float64]) : int = DBL_DIG
|
||||||
## Number of decimal digits that can be represented for the
|
## Number of decimal digits that can be represented in a
|
||||||
## 64-bit floating-point type without losing precision.
|
## 64-bit floating-point type without losing precision.
|
||||||
template minExponent*(T : typedesc[float64]) : int = DBL_MIN_EXP
|
template minExponent*(T : typedesc[float64]) : int = DBL_MIN_EXP
|
||||||
## Minimum (negative) exponent for 64-bit floating-point numbers.
|
## Minimum (negative) exponent for 64-bit floating-point numbers.
|
||||||
|
|
@ -169,11 +169,11 @@ template max10Exponent*(T : typedesc[float64]) : int = DBL_MAX_10_EXP
|
||||||
## Maximum (positive) exponent in base 10 for 64-bit floating-point
|
## Maximum (positive) exponent in base 10 for 64-bit floating-point
|
||||||
## numbers.
|
## numbers.
|
||||||
template minimumPositiveValue*(T : typedesc[float64]) : float64 = DBL_MIN
|
template minimumPositiveValue*(T : typedesc[float64]) : float64 = DBL_MIN
|
||||||
## The smallest positive (nonzero) number that can be hold by a
|
## The smallest positive (nonzero) number that can be represented in a
|
||||||
## 64-bit floating-point type.
|
## 64-bit floating-point type.
|
||||||
template maximumPositiveValue*(T : typedesc[float64]) : float64 = DBL_MAX
|
template maximumPositiveValue*(T : typedesc[float64]) : float64 = DBL_MAX
|
||||||
## The largest positive number that can be hold by a 64-bit
|
## The largest positive number that can be represented in a 64-bit
|
||||||
## floating-point type.
|
## floating-point type.
|
||||||
template epsilon*(T : typedesc[float64]): float64 = DBL_EPSILON
|
template epsilon*(T : typedesc[float64]): float64 = DBL_EPSILON
|
||||||
## The difference between 1.0 and the smallest number greater than
|
## The difference between 1.0 and the smallest number greater than
|
||||||
## 1.0 that can be represented using a 64-bit floating-point type.
|
## 1.0 that can be represented in a 64-bit floating-point type.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue