You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/PeterO.Numbers.EDecimal.md
+36-28
Original file line number
Diff line number
Diff line change
@@ -94,7 +94,7 @@ There are several other types of numbers that are mentioned in this class and el
94
94
95
95
The elements described above are in the same order as the order of each bit of each element, that is, either most significant first or least significant first.
96
96
97
-
<b>32-bit floating-point number</b>: A 32-bit binary number hich is stored similarly to a <i>64-bit floating-point number</i>, except that:
97
+
<b>32-bit binary floating-point number</b>: A 32-bit binary number hich is stored similarly to a <i>64-bit floating-point number</i>, except that:
98
98
99
99
* Precision is 24 bits.
100
100
@@ -999,7 +999,7 @@ Converts a `decimal` under the Common Language Infrastructure (see["Forms
999
999
1000
1000
<b>Return Value:</b>
1001
1001
1002
-
An EDecimal object.
1002
+
an arbitrary-precision decimal floating-point number.
1003
1003
1004
1004
### FromDouble
1005
1005
@@ -1054,23 +1054,34 @@ Converts an arbitrary-precision integer to an arbitrary precision decimal.
1054
1054
1055
1055
An arbitrary-precision decimal number with the exponent set to 0.
1056
1056
1057
+
<b>Exceptions:</b>
1058
+
1059
+
* System.ArgumentNullException:
1060
+
The parameter <i>bigint</i>
1061
+
is null.
1062
+
1057
1063
### FromExtendedFloat
1058
1064
1059
1065
public static PeterO.Numbers.EDecimal FromExtendedFloat(
1060
1066
PeterO.Numbers.EFloat ef);
1061
1067
1062
1068
<b>Deprecated.</b> Renamed to FromEFloat.
1063
1069
1064
-
Not documented yet.
1070
+
Converts an arbitrary-precision binary floating-point number to an arbitrary precision decimal.
1065
1071
1066
1072
<b>Parameters:</b>
1067
1073
1068
-
* <i>ef</i>: The parameter <i>ef</i>
1069
-
is not documented yet.
1074
+
* <i>ef</i>: An arbitrary-precision binary floating-point number.
1070
1075
1071
1076
<b>Return Value:</b>
1072
1077
1073
-
An EDecimal object.
1078
+
An arbitrary-precision decimal number.
1079
+
1080
+
<b>Exceptions:</b>
1081
+
1082
+
* System.ArgumentNullException:
1083
+
The parameter <i>ef</i>
1084
+
is null.
1074
1085
1075
1086
### FromInt16
1076
1087
@@ -1144,7 +1155,7 @@ Creates a decimal number from a 32-bit binary floating-point number. This method
1144
1155
<b>Parameters:</b>
1145
1156
1146
1157
* <i>flt</i>: The parameter <i>flt</i>
1147
-
is a 32-bit floating-point number.
1158
+
is a 32-bit binary floating-point number.
1148
1159
1149
1160
<b>Return Value:</b>
1150
1161
@@ -1917,15 +1928,13 @@ Returns the next value that is closer to the other object' s value than this obj
1917
1928
PeterO.Numbers.EDecimal bthis,
1918
1929
PeterO.Numbers.EDecimal otherValue);
1919
1930
1920
-
Adds this object and another decimal number and returns the result.
1931
+
Adds two arbitrary-precision decimal floating-point numbers and returns the result.
1921
1932
1922
1933
<b>Parameters:</b>
1923
1934
1924
-
* <i>bthis</i>: The parameter <i>bthis</i>
1925
-
is not documented yet.
1935
+
* <i>bthis</i>: The first arbitrary-precision decimal floating-point number.
1926
1936
1927
-
* <i>otherValue</i>: The parameter <i>otherValue</i>
1928
-
is not documented yet.
1937
+
* <i>otherValue</i>: The second decimal binary floating-point number.
1929
1938
1930
1939
<b>Return Value:</b>
1931
1940
@@ -1935,6 +1944,7 @@ The sum of the two objects.
1935
1944
1936
1945
* System.ArgumentNullException:
1937
1946
The parameter <i>bthis</i>
1947
+
or <i>otherValue</i>
1938
1948
is null.
1939
1949
1940
1950
### Operator `/`
@@ -2007,6 +2017,7 @@ The product of the two decimal numbers.
2007
2017
2008
2018
* System.ArgumentNullException:
2009
2019
The parameter <i>operand1</i>
2020
+
or <i>operand2</i>
2010
2021
is null.
2011
2022
2012
2023
### Operator `-`
@@ -2015,37 +2026,35 @@ The parameter <i>operand1</i>
2015
2026
PeterO.Numbers.EDecimal bthis,
2016
2027
PeterO.Numbers.EDecimal subtrahend);
2017
2028
2018
-
Subtracts an arbitrary-precision decimal number from this instance and returns the result.
2029
+
Subtracts one arbitrary-precision decimal number from another and returns the result.
2019
2030
2020
2031
<b>Parameters:</b>
2021
2032
2022
-
* <i>bthis</i>: The parameter <i>bthis</i>
2023
-
is not documented yet.
2033
+
* <i>bthis</i>: The first operand.
2024
2034
2025
-
* <i>subtrahend</i>: The parameter <i>subtrahend</i>
2026
-
is not documented yet.
2035
+
* <i>subtrahend</i>: The second operand.
2027
2036
2028
2037
<b>Return Value:</b>
2029
2038
2030
-
The difference of the two objects.
2039
+
The difference of the two decimal numbers.
2031
2040
2032
2041
<b>Exceptions:</b>
2033
2042
2034
2043
* System.ArgumentNullException:
2035
2044
The parameter <i>bthis</i>
2045
+
or <i>subtrahend</i>
2036
2046
is null.
2037
2047
2038
2048
### Operator `-`
2039
2049
2040
2050
public static PeterO.Numbers.EDecimal operator -(
2041
2051
PeterO.Numbers.EDecimal bigValue);
2042
2052
2043
-
Gets an object with the same value as this one, but with the sign reversed.
2053
+
Gets an arbitrary-precision decimal number with the same value as the given one, but with the sign reversed.
2044
2054
2045
2055
<b>Parameters:</b>
2046
2056
2047
-
* <i>bigValue</i>: The parameter <i>bigValue</i>
2048
-
is not documented yet.
2057
+
* <i>bigValue</i>: An arbitrary-precision decimal number to negate.
2049
2058
2050
2059
<b>Return Value:</b>
2051
2060
@@ -2759,11 +2768,11 @@ This number, converted to a byte (from 0 to 255). Returns 0 if this value is inf
2759
2768
2760
2769
public System.Decimal ToDecimal();
2761
2770
2762
-
Not documented yet.
2771
+
Converts this value to a `decimal` under the Common Language Infrastructure (see["Forms of numbers"](PeterO.Numbers.EDecimal.md) ), using the half-even rounding mode.
2763
2772
2764
2773
<b>Return Value:</b>
2765
2774
2766
-
The return value is not documented yet.
2775
+
A `decimal` under the Common Language Infrastructure (usually a .NET Framework decimal).
2767
2776
2768
2777
### ToDouble
2769
2778
@@ -2780,16 +2789,15 @@ The closest 64-bit floating-point number to this value. The return value can be
2780
2789
public PeterO.Numbers.EFloat ToEFloat(
2781
2790
PeterO.Numbers.EContext ec);
2782
2791
2783
-
Not documented yet.
2792
+
Creates a binary floating-point number from this object's value. Note that if the binary floating-point number contains a negative exponent, the resulting value might not be exact, in which case the resulting binary float will be an approximation of this decimal number's value.
2784
2793
2785
2794
<b>Parameters:</b>
2786
2795
2787
-
* <i>ec</i>: The parameter <i>ec</i>
2788
-
is not documented yet.
2796
+
* <i>ec</i>: An arithmetic context to control precision, rounding, and exponent range of the result. If `HasFlags` of the context is true, will also store the flags resulting from the operation (the flags are in addition to the pre-existing flags).
2789
2797
2790
2798
<b>Return Value:</b>
2791
2799
2792
-
An EFloat object.
2800
+
an arbitrary-precision float floating-point number.
2793
2801
2794
2802
### ToEFloat
2795
2803
@@ -3054,7 +3062,7 @@ Converts this value to its closest equivalent as a 32-bit floating-point number.
3054
3062
3055
3063
<b>Return Value:</b>
3056
3064
3057
-
The closest 32-bit floating-point number to this value. The return value can be positive infinity or negative infinity if this value exceeds the range of a 32-bit floating point number.
3065
+
The closest 32-bit binary floating-point number to this value. The return value can be positive infinity or negative infinity if this value exceeds the range of a 32-bit floating point number.
Copy file name to clipboardexpand all lines: docs/PeterO.Numbers.EFloat.md
+24-28
Original file line number
Diff line number
Diff line change
@@ -905,7 +905,7 @@ Creates a binary float from a 32-bit floating-point number. This method computes
905
905
<b>Parameters:</b>
906
906
907
907
* <i>flt</i>: The parameter <i>flt</i>
908
-
is a 32-bit floating-point number.
908
+
is a 32-bit binary floating-point number.
909
909
910
910
<b>Return Value:</b>
911
911
@@ -917,16 +917,16 @@ A binary float with the same value as <i>flt</i>
917
917
public static PeterO.Numbers.EFloat FromString(
918
918
string str);
919
919
920
-
Not documented yet.
920
+
Creates a binary float from a text string that represents a number, using an unlimited precision context. For more information, see the `FromString(String, int,
921
+
int, EContext)` method.
921
922
922
923
<b>Parameters:</b>
923
924
924
-
* <i>str</i>: The parameter <i>str</i>
925
-
is not documented yet.
925
+
* <i>str</i>: A text string to convert to a binary float.
926
926
927
927
<b>Return Value:</b>
928
928
929
-
An EFloat object.
929
+
The parsed number, converted to arbitrary-precision binary float.
930
930
931
931
### FromString
932
932
@@ -1001,7 +1001,7 @@ All characters mentioned above are the corresponding characters in the Basic Lat
1001
1001
(but not more than <i>str</i>
1002
1002
's length).
1003
1003
1004
-
* <i>ctx</i>: An EContext object specifying the precision, rounding, and exponent range (in bits) to apply to the parsed number. Can be null.
1004
+
* <i>ctx</i>: A precision context specifying the precision, rounding, and exponent range (in bits) to apply to the parsed number. Can be null.
1005
1005
1006
1006
<b>Return Value:</b>
1007
1007
@@ -1028,14 +1028,14 @@ Either <i>offset</i>
1028
1028
string str,
1029
1029
PeterO.Numbers.EContext ctx);
1030
1030
1031
-
Creates a binary float from a text string that represents a number. For more information, see the FromString(String, int, int, EContext) method.
1031
+
Creates a binary float from a text string that represents a number. For more information, see the `FromString(String, int,
1032
+
int, EContext)` method.
1032
1033
1033
1034
<b>Parameters:</b>
1034
1035
1035
-
* <i>str</i>: The parameter <i>str</i>
1036
-
is a text string.
1036
+
* <i>str</i>: A text string to convert to a binary float.
1037
1037
1038
-
* <i>ctx</i>: An EContext object specifying the precision, rounding, and exponent range to apply to the parsed number. Can be null.
1038
+
* <i>ctx</i>: A precision context specifying the precision, rounding, and exponent range to apply to the parsed number. Can be null.
1039
1039
1040
1040
<b>Return Value:</b>
1041
1041
@@ -1677,15 +1677,13 @@ Returns the next value that is closer to the other object' s value than this obj
1677
1677
PeterO.Numbers.EFloat bthis,
1678
1678
PeterO.Numbers.EFloat otherValue);
1679
1679
1680
-
Adds this object and another binary float and returns the result.
1680
+
Adds two arbitrary-precision binary floating-point numbers and returns the result.
1681
1681
1682
1682
<b>Parameters:</b>
1683
1683
1684
-
* <i>bthis</i>: The parameter <i>bthis</i>
1685
-
is not documented yet.
1684
+
* <i>bthis</i>: The first arbitrary-precision binary floating-point number.
1686
1685
1687
-
* <i>otherValue</i>: The parameter <i>otherValue</i>
1688
-
is not documented yet.
1686
+
* <i>otherValue</i>: The second arbitrary-precision binary floating-point number.
1689
1687
1690
1688
<b>Return Value:</b>
1691
1689
@@ -1695,6 +1693,7 @@ The sum of the two objects.
1695
1693
1696
1694
* System.ArgumentNullException:
1697
1695
The parameter <i>bthis</i>
1696
+
or <i>otherValue</i>
1698
1697
is null.
1699
1698
1700
1699
### Operator `/`
@@ -1703,7 +1702,7 @@ The parameter <i>bthis</i>
1703
1702
PeterO.Numbers.EFloat dividend,
1704
1703
PeterO.Numbers.EFloat divisor);
1705
1704
1706
-
Divides this object by another binary float and returns the result. When possible, the result will be exact.
1705
+
Divides one binary float by another and returns the result. When possible, the result will be exact.
1707
1706
1708
1707
<b>Parameters:</b>
1709
1708
@@ -1775,15 +1774,13 @@ The parameter <i>operand1</i>
1775
1774
PeterO.Numbers.EFloat bthis,
1776
1775
PeterO.Numbers.EFloat subtrahend);
1777
1776
1778
-
Subtracts an arbitrary-precision binary float from this instance and returns the result.
1777
+
Subtracts one arbitrary-precision binary float from another.
1779
1778
1780
1779
<b>Parameters:</b>
1781
1780
1782
-
* <i>bthis</i>: The parameter <i>bthis</i>
1783
-
is not documented yet.
1781
+
* <i>bthis</i>: The first operand.
1784
1782
1785
-
* <i>subtrahend</i>: The parameter <i>subtrahend</i>
1786
-
is not documented yet.
1783
+
* <i>subtrahend</i>: The second operand.
1787
1784
1788
1785
<b>Return Value:</b>
1789
1786
@@ -1804,12 +1801,11 @@ Gets an object with the same value as this one, but with the sign reversed.
1804
1801
1805
1802
<b>Parameters:</b>
1806
1803
1807
-
* <i>bigValue</i>: The parameter <i>bigValue</i>
1808
-
is not documented yet.
1804
+
* <i>bigValue</i>: An arbitrary-precision binary float.
1809
1805
1810
1806
<b>Return Value:</b>
1811
1807
1812
-
An arbitrary-precision binary float. If this value is positive zero, returns negative zero. Returns signaling NaN if this value is signaling NaN.
1808
+
The negated form of the given number. If the given number is positive zero, returns negative zero. Returns signaling NaN if this value is signaling NaN.
1813
1809
1814
1810
<b>Exceptions:</b>
1815
1811
@@ -2438,11 +2434,11 @@ This number, converted to a byte (from 0 to 255). Returns 0 if this value is inf
2438
2434
2439
2435
public double ToDouble();
2440
2436
2441
-
Not documented yet.
2437
+
Converts this value to a 64-bit floating-point number.
2442
2438
2443
2439
<b>Return Value:</b>
2444
2440
2445
-
A 64-bit floating-point number.
2441
+
This number, converted to a 64-bit floating-point number.
2446
2442
2447
2443
### ToEDecimal
2448
2444
@@ -2452,7 +2448,7 @@ Converts this value to an arbitrary-precision decimal number.
2452
2448
2453
2449
<b>Return Value:</b>
2454
2450
2455
-
An arbitrary-precision decimal number.
2451
+
This number, converted to an arbitrary-precision decimal number.
2456
2452
2457
2453
### ToEInteger
2458
2454
@@ -2722,7 +2718,7 @@ Converts this value to its closest equivalent as 32-bit floating-point number. T
2722
2718
2723
2719
<b>Return Value:</b>
2724
2720
2725
-
The closest 32-bit floating-point number to this value. The return value can be positive infinity or negative infinity if this value exceeds the range of a 32-bit floating point number.
2721
+
The closest 32-bit binary floating-point number to this value. The return value can be positive infinity or negative infinity if this value exceeds the range of a 32-bit floating point number.
0 commit comments