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: Portable.CBOR.nuspec
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -16,17 +16,14 @@
16
16
</description>
17
17
<summary>A C# implementation of Concise Binary Object Representation (CBOR), a data serialization format. This implementation can also convert between CBOR and JSON.</summary>
18
18
<releaseNotes>
19
-
In version 2.0:
20
-
- Several very special characters are escaped in JSON output, such as line and paragraph
21
-
separators, and byte order marks.
22
-
- BigInteger's longValue method was fixed
23
-
- BigInteger was changed to have no public constructors
24
-
- ReadJSON now supports UTF-16 and UTF-32 in addition to UTF-8
25
-
- PrecisionContext's JavaBigDecimal object was corrected.
26
-
- Fixed bugs in parsing JSON numbers in some cases
27
-
- CBORObject's one-argument Add method now adds CBORObject.Null if passed null,
28
-
rather than throwing an exception.
29
-
See the project page for release notes on previous versions: https://github.com/peteroupc/CBOR
19
+
In version 2.1:
20
+
- Added Ulp, Precision, MovePointLeft, MovePointRight, and ScaleToPowerOfTwo/-Ten methods to
21
+
ExtendedDecimal and ExtendedFloat
22
+
- Fixed double-rounding issue with ToDouble and ToFloat methods
23
+
of ExtendedDecimal
24
+
- Added Odd and OddOrZeroFiveUp rounding modes
25
+
- Added non-decimal base conversion features to BigInteger
26
+
- Other bug fixes See the project page for release notes on previous versions: https://github.com/peteroupc/CBOR
30
27
</releaseNotes>
31
28
<copyright>Written by Peter O. in 2013-2014. Any copyright is released to the Public Domain.</copyright>
32
29
<tags>cbor data serialization binary json numbers arithmetic</tags>
Copy file name to clipboardExpand all lines: docs/PeterO.ExtendedDecimal.md
+9-21Lines changed: 9 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1737,12 +1737,10 @@ Pi rounded to the given precision. Signals FlagInvalid and returns NaN if the pa
1737
1737
public PeterO.ExtendedDecimal MovePointLeft(
1738
1738
int places);
1739
1739
1740
-
Returns a number similar to this number but with the decimal point moved to the right.
1740
+
Returns a number similar to this number but with the decimal point moved to the right.
1741
1741
1742
1742
<b>Parameters:</b>
1743
1743
1744
-
* <i>ctx</i>: A precision 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). Can be null.
1745
-
1746
1744
* <i>places</i>: A 32-bit signed integer.
1747
1745
1748
1746
<b>Returns:</b>
@@ -1759,11 +1757,9 @@ Returns a number similar to this number but with the decimal point moved to the
1759
1757
1760
1758
<b>Parameters:</b>
1761
1759
1762
-
* <i>ctx</i>: A precision 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). Can be null.
1763
-
1764
1760
* <i>places</i>: A 32-bit signed integer.
1765
1761
1766
-
* <i>ctx</i>: A PrecisionContext object.
1762
+
* <i>ctx</i>: A precision 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). Can be null.
1767
1763
1768
1764
<b>Returns:</b>
1769
1765
@@ -1774,12 +1770,10 @@ An ExtendedDecimal object.
1774
1770
public PeterO.ExtendedDecimal MovePointLeft(
1775
1771
PeterO.BigInteger bigPlaces);
1776
1772
1777
-
Returns a number similar to this number but with the decimal point moved to the left.
1773
+
Returns a number similar to this number but with the decimal point moved to the left.
1778
1774
1779
1775
<b>Parameters:</b>
1780
1776
1781
-
* <i>ctx</i>: A precision 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). Can be null.
1782
-
1783
1777
* <i>bigPlaces</i>: A BigInteger object.
1784
1778
1785
1779
<b>Returns:</b>
@@ -1796,11 +1790,9 @@ Returns a number similar to this number but with the decimal point moved to the
1796
1790
1797
1791
<b>Parameters:</b>
1798
1792
1799
-
* <i>ctx</i>: A precision 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). Can be null.
1800
-
1801
1793
* <i>bigPlaces</i>: A BigInteger object.
1802
1794
1803
-
* <i>ctx</i>: A PrecisionContext object.
1795
+
* <i>ctx</i>: A precision 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). Can be null.
1804
1796
1805
1797
<b>Returns:</b>
1806
1798
@@ -1833,7 +1825,7 @@ Returns a number similar to this number but with the decimal point moved to the
1833
1825
1834
1826
* <i>places</i>: A 32-bit signed integer.
1835
1827
1836
-
* <i>ctx</i>: A PrecisionContext object.
1828
+
* <i>ctx</i>: A precision 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). Can be null.
1837
1829
1838
1830
<b>Returns:</b>
1839
1831
@@ -1844,12 +1836,10 @@ An ExtendedDecimal object.
1844
1836
public PeterO.ExtendedDecimal MovePointRight(
1845
1837
PeterO.BigInteger bigPlaces);
1846
1838
1847
-
Returns a number similar to this number but with the decimal point moved to the right.
1839
+
Returns a number similar to this number but with the decimal point moved to the right.
1848
1840
1849
1841
<b>Parameters:</b>
1850
1842
1851
-
* <i>ctx</i>: A precision 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). Can be null.
1852
-
1853
1843
* <i>bigPlaces</i>: A BigInteger object.
1854
1844
1855
1845
<b>Returns:</b>
@@ -1868,7 +1858,7 @@ Returns a number similar to this number but with the decimal point moved to the
1868
1858
1869
1859
* <i>bigPlaces</i>: A BigInteger object.
1870
1860
1871
-
* <i>ctx</i>: A PrecisionContext object.
1861
+
* <i>ctx</i>: A precision 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). Can be null.
1872
1862
1873
1863
<b>Returns:</b>
1874
1864
@@ -1902,7 +1892,7 @@ Returns a number similar to this number but with the scale adjusted.
1902
1892
1903
1893
* <i>places</i>: A 32-bit signed integer.
1904
1894
1905
-
* <i>ctx</i>: A PrecisionContext object.
1895
+
* <i>ctx</i>: A precision 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). Can be null.
1906
1896
1907
1897
<b>Returns:</b>
1908
1898
@@ -1917,8 +1907,6 @@ Returns a number similar to this number but with the scale adjusted.
1917
1907
1918
1908
<b>Parameters:</b>
1919
1909
1920
-
* <i>ctx</i>: A precision 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). Can be null.
1921
-
1922
1910
* <i>bigPlaces</i>: A BigInteger object.
1923
1911
1924
1912
<b>Returns:</b>
@@ -1937,7 +1925,7 @@ Returns a number similar to this number but with its scale adjusted.
1937
1925
1938
1926
* <i>bigPlaces</i>: A BigInteger object.
1939
1927
1940
-
* <i>ctx</i>: A PrecisionContext object.
1928
+
* <i>ctx</i>: A precision 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). Can be null.
Copy file name to clipboardExpand all lines: docs/PeterO.ExtendedFloat.md
+8-18Lines changed: 8 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1760,12 +1760,10 @@ The parameter <i>ctx</i>
1760
1760
public PeterO.ExtendedFloat MovePointLeft(
1761
1761
int places);
1762
1762
1763
-
Returns a number similar to this number but with the radix point moved to the left.
1763
+
Returns a number similar to this number but with the radix point moved to the left.
1764
1764
1765
1765
<b>Parameters:</b>
1766
1766
1767
-
* <i>ctx</i>: A precision 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). Can be null.
1768
-
1769
1767
* <i>places</i>: A 32-bit signed integer.
1770
1768
1771
1769
<b>Returns:</b>
@@ -1778,15 +1776,13 @@ An ExtendedFloat object.
1778
1776
int places,
1779
1777
PeterO.PrecisionContext ctx);
1780
1778
1781
-
Returns a number similar to this number but with the radix point moved to the left.
1779
+
Returns a number similar to this number but with the radix point moved to the left.
1782
1780
1783
1781
<b>Parameters:</b>
1784
1782
1785
-
* <i>ctx</i>: A precision 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). Can be null.
1786
-
1787
1783
* <i>places</i>: A 32-bit signed integer.
1788
1784
1789
-
* <i>ctx</i>: A PrecisionContext object.
1785
+
* <i>ctx</i>: A precision 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). Can be null.
1790
1786
1791
1787
<b>Returns:</b>
1792
1788
@@ -1801,8 +1797,6 @@ Returns a number similar to this number but with the radix point moved to the le
1801
1797
1802
1798
<b>Parameters:</b>
1803
1799
1804
-
* <i>ctx</i>: A precision 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). Can be null.
1805
-
1806
1800
* <i>bigPlaces</i>: A BigInteger object.
1807
1801
1808
1802
<b>Returns:</b>
@@ -1821,7 +1815,7 @@ Returns a number similar to this number but with the radix point moved to the le
1821
1815
1822
1816
* <i>bigPlaces</i>: A BigInteger object.
1823
1817
1824
-
* <i>ctx</i>: A PrecisionContext object.
1818
+
* <i>ctx</i>: A precision 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). Can be null.
1825
1819
1826
1820
<b>Returns:</b>
1827
1821
@@ -1854,7 +1848,7 @@ Returns a number similar to this number but with the radix point moved to the ri
1854
1848
1855
1849
* <i>places</i>: A 32-bit signed integer.
1856
1850
1857
-
* <i>ctx</i>: A PrecisionContext object.
1851
+
* <i>ctx</i>: A precision 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). Can be null.
1858
1852
1859
1853
<b>Returns:</b>
1860
1854
@@ -1885,11 +1879,9 @@ Returns a number similar to this number but with the radix point moved to the ri
1885
1879
1886
1880
<b>Parameters:</b>
1887
1881
1888
-
* <i>ctx</i>: A precision 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). Can be null.
1889
-
1890
1882
* <i>bigPlaces</i>: A BigInteger object.
1891
1883
1892
-
* <i>ctx</i>: A PrecisionContext object.
1884
+
* <i>ctx</i>: A precision 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). Can be null.
1893
1885
1894
1886
<b>Returns:</b>
1895
1887
@@ -1923,7 +1915,7 @@ Returns a number similar to this number but with the scale adjusted.
1923
1915
1924
1916
* <i>places</i>: A 32-bit signed integer.
1925
1917
1926
-
* <i>ctx</i>: A PrecisionContext object.
1918
+
* <i>ctx</i>: A precision 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). Can be null.
1927
1919
1928
1920
<b>Returns:</b>
1929
1921
@@ -1934,12 +1926,10 @@ An ExtendedDecimal object.
1934
1926
public PeterO.ExtendedFloat ScaleByPowerOfTwo(
1935
1927
PeterO.BigInteger bigPlaces);
1936
1928
1937
-
Returns a number similar to this number but with the scale adjusted.
1929
+
Returns a number similar to this number but with the scale adjusted.
1938
1930
1939
1931
<b>Parameters:</b>
1940
1932
1941
-
* <i>ctx</i>: A precision 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). Can be null.
0 commit comments