1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232
|
<?xml version="1.0" encoding="utf-8"?>
<Type Name="Decimal" FullName="System.Decimal" FullNameSP="System_Decimal" Maintainer="ecma">
<TypeSignature Language="ILASM" Value=".class public sequential sealed serializable Decimal extends System.ValueType implements System.IComparable, System.IFormattable" />
<TypeSignature Language="C#" Value="public struct Decimal : IComparable, IComparable<decimal>, IConvertible, IEquatable<decimal>, IFormattable, System.Runtime.Serialization.IDeserializationCallback" />
<TypeSignature Language="ILAsm" Value=".class public sequential ansi serializable sealed beforefieldinit Decimal extends System.ValueType implements class System.IComparable, class System.IComparable`1<valuetype System.Decimal>, class System.IConvertible, class System.IEquatable`1<valuetype System.Decimal>, class System.IFormattable, class System.Runtime.Serialization.IDeserializationCallback" />
<MemberOfLibrary>ExtendedNumerics</MemberOfLibrary>
<AssemblyInfo>
<AssemblyName>mscorlib</AssemblyName>
<AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ThreadingSafetyStatement>This type is safe for multithreaded operations. </ThreadingSafetyStatement>
<Base>
<BaseTypeName>System.ValueType</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.IComparable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IComparable<System.Decimal></InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IConvertible</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IEquatable<System.Decimal></InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IFormattable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.Runtime.Serialization.IDeserializationCallback</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Decimal" /> value type represents decimal numbers ranging from positive 79,228,162,514,264,337,593,543,950,335 to negative 79,228,162,514,264,337,593,543,950,335. The <see cref="T:System.Decimal" /> value type is appropriate for financial calculations that require large numbers of significant integral and fractional digits and no round-off errors. The <see cref="T:System.Decimal" /> type does not eliminate the need for rounding. Rather, it minimizes errors due to rounding. For example, the following code produces a result of 0.9999999999999999999999999999 instead of 1.</para>
<para>code reference: System.Decimal.Class#1</para>
<para>When the result of the division and multiplication is passed to the <see cref="M:System.Math.Round(System.Decimal,System.Int32)" /> method, the result suffers no loss of precision, as the following code shows.</para>
<para>code reference: System.Decimal.Class#2</para>
<para>A decimal number is a floating-point value that consists of a sign, a numeric value where each digit in the value ranges from 0 to 9, and a scaling factor that indicates the position of a floating decimal point that separates the integral and fractional parts of the numeric value. </para>
<para>The binary representation of a <see cref="T:System.Decimal" /> value consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the 96-bit integer and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10, raised to an exponent ranging from 0 to 28. Therefore, the binary representation of a <see cref="T:System.Decimal" /> value the form, ((-2<superscript>96</superscript> to 2<superscript>96</superscript>) / 10<superscript>(0 to 28)</superscript>), where -(2<superscript>96</superscript>-1) is equal to <see cref="F:System.Decimal.MinValue" />, and 2<superscript>96</superscript>-1 is equal to <see cref="F:System.Decimal.MaxValue" />. For more information about the binary representation of <see cref="T:System.Decimal" /> values and an example, see the <see cref="M:System.Decimal.#ctor(System.Int32[])" /> constructor and the <see cref="M:System.Decimal.GetBits(System.Decimal)" /> method. </para>
<para>The scaling factor also preserves any trailing zeros in a <see cref="T:System.Decimal" /> number. Trailing zeros do not affect the value of a <see cref="T:System.Decimal" /> number in arithmetic or comparison operations. However, trailing zeros might be revealed by the <see cref="Overload:System.Decimal.ToString" /> method if an appropriate format string is applied.</para>
<format type="text/html">
<h2>Conversion Considerations</h2>
</format>
<para>This type provides methods that convert <see cref="T:System.Decimal" /> values to and from <see cref="T:System.SByte" />, <see cref="T:System.Int16" />, <see cref="T:System.Int32" />, <see cref="T:System.Int64" />, <see cref="T:System.Byte" />, <see cref="T:System.UInt16" />, <see cref="T:System.UInt32" />, and <see cref="T:System.UInt64" /> values. Conversions from these integral types to <see cref="T:System.Decimal" /> are widening conversions that never lose information or throw exceptions. </para>
<para>Conversions from <see cref="T:System.Decimal" /> to any of the integral types are narrowing conversions that round the <see cref="T:System.Decimal" /> value to the nearest integer value toward zero. Some languages, such as C#, also support the conversion of <see cref="T:System.Decimal" /> values to <see cref="T:System.Char" /> values. If the result of these conversions cannot be represented in the destination type, an <see cref="T:System.OverflowException" /> exception is thrown.</para>
<para>The <see cref="T:System.Decimal" /> type also provides methods that convert <see cref="T:System.Decimal" /> values to and from <see cref="T:System.Single" /> and <see cref="T:System.Double" /> values. Conversions from <see cref="T:System.Decimal" /> to <see cref="T:System.Single" /> or <see cref="T:System.Double" /> are narrowing conversions that might lose precision but not information about the magnitude of the converted value. The conversion does not throw an exception.</para>
<para>Conversions from <see cref="T:System.Single" /> or <see cref="T:System.Double" /> to <see cref="T:System.Decimal" /> throw an <see cref="T:System.OverflowException" /> exception if the result of the conversion cannot be represented as a <see cref="T:System.Decimal" />.</para>
<format type="text/html">
<h2>Performing Operations on Decimal Values</h2>
</format>
<para>The <see cref="T:System.Decimal" /> type supports standard mathematical operations such as addition, subtraction, division, multiplication, and unary negation. You can also work directly with the binary representation of a <see cref="T:System.Decimal" /> value by calling the <see cref="M:System.Decimal.GetBits(System.Decimal)" /> method. </para>
<para>To compare two <see cref="T:System.Decimal" /> values, you can use the standard numeric comparison operators, or you can call the <see cref="M:System.Decimal.CompareTo(System.Decimal)" /> or <see cref="M:System.Decimal.Equals(System.Decimal)" /> method. </para>
<para>You can also call the members of the <see cref="T:System.Math" /> class to perform a wide range of numeric operations, including getting the absolute value of a number, determining the maximum or minimum value of two <see cref="T:System.Decimal" /> values, getting the sign of a number, and rounding a number. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents a decimal number.</para>
</summary>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(float64 value)" />
<MemberSignature Language="C#" Value="public Decimal (double value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(float64 value) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="value" Type="System.Double" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">
<para>
<paramref name="value" /> is one of the following:</para>
<para>greater than <see cref="F:System.Decimal.MaxValue" /></para>
<para>less than <see cref="F:System.Decimal.MinValue" /></para>
<para>equal to <see cref="F:System.Double.NaN" />, but the Decimal representation does not support NaNs.</para>
<para>equal to <see cref="F:System.Double.PositiveInfinity" />, but the Decimal representation does not support infinities.</para>
<para>equal to <see cref="F:System.Double.NegativeInfinity" />, but the Decimal representation does not support infinities.</para>
</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This constructor rounds <paramref name="value" /> to 15 significant digits using rounding to nearest. This is done even if the number has more than 15 digits and the less significant digits are zero.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> to the value of the specified double-precision floating-point number.</para>
</summary>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value to represent as a <see cref="T:System.Decimal" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(int32 value)" />
<MemberSignature Language="C#" Value="public Decimal (int value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 value) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<remarks>
<para>This constructor initializes the new <see cref="T:System.Decimal" /> to the value
specified by <paramref name="value" />. The scale of the new <see cref="T:System.Decimal" /> is 0.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> to the value of the specified 32-bit signed integer.</para>
</summary>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value to represent as a <see cref="T:System.Decimal" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(class System.Int32[] bits)" />
<MemberSignature Language="C#" Value="public Decimal (int[] bits);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32[] bits) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="bits" Type="System.Int32[]" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentNullException">
<paramref name="bits" /> is a null reference. </exception>
<exception cref="T:System.ArgumentException">
<para>
<paramref name="bits" /> does not contain four elements. </para>
</exception>
<example>
<para>The following example demonstrates using the <see cref="T:System.Decimal" /> (Int32 [])
constructor.</para>
<code lang="C#">using System;
class ConstructDecimal {
public static void Main() {
int negativeBitValue = unchecked ((int)0x80000000);
int [] parts0 = {0,0,0,0}; //Positive Zero.
int [] parts1 = {1,0,0,0};
int [] parts2 = {0,1,0,0};
int [] parts3 = {0,0,1,0};
int [] parts4 = {0,0,0,negativeBitValue}; // Negative zero.
int [] parts5 = {1,1,1,0};
int [] partsMaxValue = {-1,-1,-1,0};
int [] partsMinValue = {-1,-1,-1,negativeBitValue};
decimal d = new Decimal(parts0);
Console.WriteLine("{{0,0,0,0}} = {0}",d);
d = new Decimal(parts1);
Console.WriteLine("{{1,0,0,0}} = {0}",d);
d = new Decimal(parts2);
Console.WriteLine("{{0,1,0,0}} = {0}",d);
d = new Decimal(parts3);
Console.WriteLine("{{0,0,1,0}} = {0}",d);
d = new Decimal(parts4);
Console.WriteLine("{{0,0,0,{0}}} = {1}",parts4[3],d);
d = new Decimal(parts5);
Console.WriteLine("{{1,1,1,0}} = {0}",d);
d = new Decimal(partsMaxValue );
Console.WriteLine("{{-1,-1,-1,0}} = {0}",d);
d = new Decimal(partsMinValue);
Console.WriteLine("{{-1,-1,-1,{0}}} = {1}",partsMinValue [3],d);
}
}
</code>
<para>The output is</para>
<c>
<para>{0,0,0,0} = 0</para>
<para>{1,0,0,0} = 1</para>
<para>{0,1,0,0} = 4294967296</para>
<para>{0,0,1,0} = 18446744073709551616</para>
<para>{0,0,0,-2147483648} = 0</para>
<para>{1,1,1,0} = 18446744078004518913</para>
<para>{-1,-1,-1,0} = 79228162514264337593543950335</para>
<para>{-1,-1,-1,-2147483648} = -79228162514264337593543950335</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The binary representation of a <see cref="T:System.Decimal" /> number consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the integer number and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10, raised to an exponent ranging from 0 to 28.</para>
<para>
<paramref name="bits" /> is a four-element long array of 32-bit signed integers.</para>
<para>
<paramref name="bits" /> [0], <paramref name="bits" /> [1], and <paramref name="bits" /> [2] contain the low, middle, and high 32 bits of the 96-bit integer number.</para>
<para>
<paramref name="bits" /> [3] contains the scale factor and sign, and consists of following parts: </para>
<para>Bits 0 to 15, the lower word, are unused and must be zero.</para>
<para>Bits 16 to 23 must contain an exponent between 0 and 28, which indicates the power of 10 to divide the integer number.</para>
<para>Bits 24 to 30 are unused and must be zero.</para>
<para>Bit 31 contains the sign; 0 meaning positive, and 1 meaning negative.</para>
<para>A numeric value might have several possible binary representations; all are equally valid and numerically equivalent. Note that the bit representation differentiates between negative and positive zero. These values are treated as being equal in all operations.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> to a decimal value represented in binary and contained in a specified array.</para>
</summary>
<param name="bits">
<attribution license="cc4" from="Microsoft" modified="false" />An array of 32-bit signed integers containing a representation of a decimal value. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(int64 value)" />
<MemberSignature Language="C#" Value="public Decimal (long value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int64 value) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="value" Type="System.Int64" />
</Parameters>
<Docs>
<remarks>
<para>This constructor initializes the new <see cref="T:System.Decimal" /> to the value
specified by <paramref name="value" />. The scale of the new <see cref="T:System.Decimal" /> is 0.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> to the value of the specified 64-bit signed integer.</para>
</summary>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value to represent as a <see cref="T:System.Decimal" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(float32 value)" />
<MemberSignature Language="C#" Value="public Decimal (float value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(float32 value) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue />
<Parameters>
<Parameter Name="value" Type="System.Single" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">
<para>
<paramref name="value" /> is one of the following:</para>
<para>greater than <see cref="F:System.Decimal.MaxValue" /></para>
<para>less than <see cref="F:System.Decimal.MinValue" /></para>
<para>equal to <see cref="F:System.Single.NaN" />, but the Decimal representation does not support NaNs.</para>
<para>equal to <see cref="F:System.Single.PositiveInfinity" />, but the Decimal representation does not support infinities.</para>
<para>equal to <see cref="F:System.Single.NegativeInfinity" />, but the Decimal representation does not support infinities.</para>
</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This constructor rounds <paramref name="value" /> to 7 significant digits using rounding to nearest. This is done even if the number has more than 7 digits and the less significant digits are zero.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> to the value of the specified single-precision floating-point number.</para>
</summary>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value to represent as a <see cref="T:System.Decimal" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(unsigned int32 value)" />
<MemberSignature Language="C#" Value="public Decimal (uint value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int32 value) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue />
<Parameters>
<Parameter Name="value" Type="System.UInt32" />
</Parameters>
<Docs>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use the
<see cref="T:System.Decimal" />(<see cref="T:System.Int64" />) constructor.</para>
<para>This constructor initializes the new <see cref="T:System.Decimal" /> to the value
specified by <paramref name="value" />. The scale of the new <see cref="T:System.Decimal" /> is 0.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> to the value of the specified 32-bit unsigned integer.</para>
</summary>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value to represent as a <see cref="T:System.Decimal" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="ILASM" Value="public rtspecialname specialname instance void .ctor(unsigned int64 value)" />
<MemberSignature Language="C#" Value="public Decimal (ulong value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(unsigned int64 value) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue />
<Parameters>
<Parameter Name="value" Type="System.UInt64" />
</Parameters>
<Docs>
<remarks>
<para>This constructor initializes the new <see cref="T:System.Decimal" /> to the value
specified by <paramref name="value" />. The scale of the new <see cref="T:System.Decimal" /> is 0.</para>
<para>This member is not CLS-compliant. For a CLS-compliant alternative, use the
<see cref="T:System.Decimal" />(<see cref="T:System.Int64" />) constructor.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> to the value of the specified 64-bit unsigned integer.</para>
</summary>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The value to represent as a <see cref="T:System.Decimal" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Decimal (int lo, int mid, int hi, bool isNegative, byte scale);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 lo, int32 mid, int32 hi, bool isNegative, unsigned int8 scale) cil managed" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="lo" Type="System.Int32" />
<Parameter Name="mid" Type="System.Int32" />
<Parameter Name="hi" Type="System.Int32" />
<Parameter Name="isNegative" Type="System.Boolean" />
<Parameter Name="scale" Type="System.Byte" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The binary representation of a <see cref="T:System.Decimal" /> number consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the integer number and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10 raised to an exponent ranging from 0 to 28.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Initializes a new instance of <see cref="T:System.Decimal" /> from parameters specifying the instance's constituent parts.</para>
</summary>
<param name="lo">
<attribution license="cc4" from="Microsoft" modified="false" />The low 32 bits of a 96-bit integer. </param>
<param name="mid">
<attribution license="cc4" from="Microsoft" modified="false" />The middle 32 bits of a 96-bit integer. </param>
<param name="hi">
<attribution license="cc4" from="Microsoft" modified="false" />The high 32 bits of a 96-bit integer. </param>
<param name="isNegative">
<attribution license="cc4" from="Microsoft" modified="false" />
true to indicate a negative number; false to indicate a positive number. </param>
<param name="scale">
<attribution license="cc4" from="Microsoft" modified="false" />A power of 10 ranging from 0 to 28. </param>
</Docs>
</Member>
<Member MemberName="Add">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Add(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal Add (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Add(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">The sum of <paramref name="d1" /> and <paramref name="d2" /> is less than <see cref="F:System.Decimal.MinValue" /> or greater than <see cref="F:System.Decimal.MaxValue" />.</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The following code sample illustrates the use of Add : </para>
<para>code reference: Decimal Example#5</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Adds two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The sum of <paramref name="d1" /> and <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to add. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to add. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Ceiling">
<MemberSignature Language="C#" Value="public static decimal Ceiling (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Ceiling(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding toward positive infinity. In other words, if <paramref name="d" /> is positive, the presence of any fractional component causes <paramref name="d" /> to be rounded to the next highest integer. If <paramref name="d" /> is negative, the rounding operation causes any fractional component of <paramref name="d" /> to be discarded. The operation of this method differs from the <see cref="M:System.Decimal.Floor(System.Decimal)" /> method, which supports rounding toward negative infinity. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the smallest integral value that is greater than or equal to the specified decimal number.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The smallest integral value that is greater than or equal to the <paramref name="d" /> parameter. Note that this method returns a <see cref="T:System.Decimal" /> instead of an integral type.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />A decimal number. </param>
</Docs>
</Member>
<Member MemberName="Compare">
<MemberSignature Language="ILASM" Value=".method public hidebysig static int32 Compare(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static int Compare (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 Compare(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Compares two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A signed number indicating the relative values of <paramref name="d1" /> and <paramref name="d2" />.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Return value </para>
</term>
<description>
<para>Meaning </para>
</description>
</item>
</listheader>
<item>
<term>
<para>Less than zero </para>
</term>
<description>
<para>
<paramref name="d1" /> is less than <paramref name="d2" />. </para>
</description>
</item>
<item>
<term>
<para>Zero </para>
</term>
<description>
<para>
<paramref name="d1" /> and <paramref name="d2" /> are equal. </para>
</description>
</item>
<item>
<term>
<para>Greater than zero </para>
</term>
<description>
<para>
<paramref name="d1" /> is greater than <paramref name="d2" />. </para>
</description>
</item>
</list>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="CompareTo">
<MemberSignature Language="C#" Value="public int CompareTo (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 CompareTo(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method implements the <see cref="T:System.IComparable`1" /> interface and performs slightly better than the <see cref="M:System.Decimal.CompareTo(System.Object)" /> method because it does not have to convert the <paramref name="value" /> parameter to an object.</para>
<para>Depending on your programming language, it might be possible to code a <see cref="Overload:System.Decimal.CompareTo" /> method where the parameter type has fewer bits (is narrower) than the instance type. This is possible because some programming languages perform an implicit widening conversion that represents the parameter as a type with as many bits as the instance.</para>
<para>For example, suppose the instance type is <see cref="T:System.Int32" /> and the parameter type is <see cref="T:System.Byte" />. The Microsoft C# compiler generates instructions to represent the parameter as an <see cref="T:System.Int32" /> object, then generates a <see cref="M:System.Int32.CompareTo(System.Int32)" /> method to compare the values of the <see cref="T:System.Int32" /> instance and the <see cref="T:System.Int32" /> parameter representation.</para>
<para>Consult your programming language's documentation to determine whether its compiler performs implicit widening conversions on numeric types.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Compares this instance to a specified <see cref="T:System.Decimal" /> object and returns a comparison of their relative values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A signed number indicating the relative values of this instance and <paramref name="value" />.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Return value </para>
</term>
<description>
<para>Meaning </para>
</description>
</item>
</listheader>
<item>
<term>
<para>Less than zero </para>
</term>
<description>
<para>This instance is less than <paramref name="value" />. </para>
</description>
</item>
<item>
<term>
<para>Zero </para>
</term>
<description>
<para>This instance is equal to <paramref name="value" />. </para>
</description>
</item>
<item>
<term>
<para>Greater than zero </para>
</term>
<description>
<para>This instance is greater than <paramref name="value" />. </para>
</description>
</item>
</list>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The object to compare with this instance.</param>
</Docs>
</Member>
<Member MemberName="CompareTo">
<MemberSignature Language="ILASM" Value=".method public final hidebysig virtual int32 CompareTo(object value)" />
<MemberSignature Language="C#" Value="public int CompareTo (object value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance int32 CompareTo(object value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentException">
<paramref name="value" /> is not a <see cref="T:System.Decimal" /> and is not a null reference. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Any instance of <see cref="T:System.Decimal" />, regardless of its value, is considered greater than null.</para>
<para>Parameter <paramref name="value" /> must be null or an instance of <see cref="T:System.Decimal" />; otherwise, an exception is thrown.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Compares this instance to a specified object and returns a comparison of their relative values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A signed number indicating the relative values of this instance and <paramref name="value" />.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Return value </para>
</term>
<description>
<para>Meaning </para>
</description>
</item>
</listheader>
<item>
<term>
<para>Less than zero </para>
</term>
<description>
<para>This instance is less than <paramref name="value" />. </para>
</description>
</item>
<item>
<term>
<para>Zero </para>
</term>
<description>
<para>This instance is equal to <paramref name="value" />. </para>
</description>
</item>
<item>
<term>
<para>Greater than zero </para>
</term>
<description>
<para>This instance is greater than <paramref name="value" />.</para>
<para>-or- </para>
<para>
<paramref name="value" /> is null. </para>
</description>
</item>
</list>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The object to compare with this instance, or null. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Divide">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Divide(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal Divide (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Divide(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<exception cref="T:System.DivideByZeroException">
<paramref name="d2" /> is zero. </exception>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />. </exception>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Divides two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of dividing <paramref name="d1" /> by <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The dividend. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The divisor. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="C#" Value="public bool Equals (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool Equals(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method implements the <see cref="T:System.IEquatable`1" /> interface, and performs slightly better than <see cref="M:System.Decimal.Equals(System.Object)" /> because it does not have to convert the <paramref name="value" /> parameter to an object.</para>
<para>If <paramref name="value" /> has fewer bits (is narrower) than the instance type, some programming languages perform an implicit widening conversion that transforms the value of the parameter into a value with more bits.</para>
<para>For example, suppose the instance type is <see cref="T:System.Int32" /> and the parameter type is <see cref="T:System.Byte" />. The Microsoft C# compiler generates instructions to represent the value of the parameter as an <see cref="T:System.Int32" /> object, then generates a <see cref="M:System.Int32.CompareTo(System.Int32)" /> method to compare the <see cref="T:System.Int32" /> instance and parameter representation.</para>
<para>Consult your programming language's documentation to determine whether its compiler performs implicit widening conversions on numeric types.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value indicating whether this instance and a specified <see cref="T:System.Decimal" /> object represent the same value.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="value" /> is equal to this instance; otherwise, false.</para>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />An object to compare to this instance.</param>
</Docs>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="ILASM" Value=".method public hidebysig virtual bool Equals(object value)" />
<MemberSignature Language="C#" Value="public override bool Equals (object value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<remarks>
<para>
<block subset="none" type="note"> This method
overrides <see cref="M:System.Object.Equals(System.Object)" />.</block>
</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value indicating whether this instance and a specified <see cref="T:System.Object" /> represent the same type and value.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="value" /> is a <see cref="T:System.Decimal" /> and equal to this instance; otherwise, false.</para>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The object to compare with this instance. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="ILASM" Value=".method public hidebysig static bool Equals(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static bool Equals (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool Equals(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value indicating whether two specified instances of <see cref="T:System.Decimal" /> represent the same value.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="d1" /> and <paramref name="d2" /> are equal; otherwise, false.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Floor">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Floor(decimal d)" />
<MemberSignature Language="C#" Value="public static decimal Floor (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Floor(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<example>
<para>The following example demonstrates the <see cref="M:System.Decimal.Floor(System.Decimal)" /> method.</para>
<code lang="C#">using System;
class DecimalTest {
public static void Main() {
Console.WriteLine("floor {0} is {1}", 3.14159m, Decimal.Floor(3.14159m));
Console.WriteLine("floor {0} is {1}", -3.9m, Decimal.Floor(-3.9m));
Console.WriteLine("floor {0} is {1}", 3.0m, Decimal.Floor(3.0m));
}
}
</code>
<para>The output is</para>
<c>
<para>floor 3.14159 is 3</para>
<para>floor -3.9 is -4</para>
<para>floor 3.0 is 3</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The behavior of this method follows IEEE Standard 754, Section 4. This kind of rounding is sometimes called rounding toward negative infinity. In other words, if <paramref name="d" /> is positive, any fractional component is truncated. If <paramref name="d" /> is negative, the presence of any fractional component causes it to be rounded to the smaller integer. The operation of this method differs from the <see cref="M:System.Decimal.Ceiling(System.Decimal)" /> method, which supports rounding toward positive infinity. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Rounds a specified <see cref="T:System.Decimal" /> number to the closest integer toward negative infinity.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>If <paramref name="d" /> has a fractional part, the next whole <see cref="T:System.Decimal" /> number toward negative infinity that is less than <paramref name="d" />.</para>
<para>-or- </para>
<para>If <paramref name="d" /> doesn't have a fractional part, <paramref name="d" /> is returned unchanged. Note that the method returns an integral value of type <see cref="T:System.Decimal" />. </para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The value to round. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="FromOACurrency">
<MemberSignature Language="C#" Value="public static decimal FromOACurrency (long cy);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal FromOACurrency(int64 cy) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="cy" Type="System.Int64" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the specified 64-bit signed integer, which contains an OLE Automation Currency value, to the equivalent <see cref="T:System.Decimal" /> value.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A <see cref="T:System.Decimal" /> that contains the equivalent of <paramref name="cy" />.</para>
</returns>
<param name="cy">
<attribution license="cc4" from="Microsoft" modified="false" />An OLE Automation Currency value. </param>
</Docs>
</Member>
<Member MemberName="GetBits">
<MemberSignature Language="ILASM" Value=".method public hidebysig static class System.Int32[] GetBits(decimal d)" />
<MemberSignature Language="C#" Value="public static int[] GetBits (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32[] GetBits(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32[]</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<example>
<para>The following example demonstrates the different
representations of 1.00 and 1.</para>
<code lang="C#">using System;
public class Class1 {
public static void Print (int [] bs) {
foreach (int b in bs) {
Console.Write (b+" ");
}
}
public static void Main () {
decimal d = 1.00m;
decimal d1 = 1;
Console.Write (d);
Console.Write (" - bits: ");
Print (decimal.GetBits(d));
Console.WriteLine();
Console.Write (d1);
Console.Write (" - bits: ");
Print (decimal.GetBits(d1));
Console.WriteLine();
Console.WriteLine ("d1.CompareTo(d) == {0}", d1.CompareTo(d));
Console.WriteLine ("d1 == d {0}", d1 == d);
}
}
</code>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The binary representation of a <see cref="T:System.Decimal" /> number consists of a 1-bit sign, a 96-bit integer number, and a scaling factor used to divide the integer number and specify what portion of it is a decimal fraction. The scaling factor is implicitly the number 10, raised to an exponent ranging from 0 to 28.</para>
<para>The return value is a four-element array of 32-bit signed integers.</para>
<para>The first, second, and third elements of the returned array contain the low, middle, and high 32 bits of the 96-bit integer number.</para>
<para>The fourth element of the returned array contains the scale factor and sign. It consists of the following parts: </para>
<para>Bits 0 to 15, the lower word, are unused and must be zero.</para>
<para>Bits 16 to 23 must contain an exponent between 0 and 28, which indicates the power of 10 to divide the integer number.</para>
<para>Bits 24 to 30 are unused and must be zero.</para>
<para>Bit 31 contains the sign: 0 mean positive, and 1 means negative.</para>
<para>Note that the bit representation differentiates between negative and positive zero. These values are treated as being equal in all operations.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of a specified instance of <see cref="T:System.Decimal" /> to its equivalent binary representation.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 32-bit signed integer array with four elements that contain the binary representation of <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The value to convert. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="GetHashCode">
<MemberSignature Language="ILASM" Value=".method public hidebysig virtual int32 GetHashCode()" />
<MemberSignature Language="C#" Value="public override int GetHashCode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<para>The algorithm used to
generate the hash code value is unspecified.</para>
<para>
<block subset="none" type="note">This method
overrides <see cref="M:System.Object.GetHashCode" />.</block>
</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the hash code for this instance.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 32-bit signed integer hash code.</para>
</returns>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="GetTypeCode">
<MemberSignature Language="C#" Value="public TypeCode GetTypeCode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance valuetype System.TypeCode GetTypeCode() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.TypeCode</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the <see cref="T:System.TypeCode" /> for value type <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The enumerated constant <see cref="F:System.TypeCode.Decimal" />.</para>
</returns>
</Docs>
</Member>
<Member MemberName="MaxValue">
<MemberSignature Language="ILASM" Value=".field public static initOnly decimal MaxValue" />
<MemberSignature Language="C#" Value="public static readonly decimal MaxValue;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Decimal MaxValue" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters />
<MemberValue>79228162514264337593543950335</MemberValue>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of this constant is positive 79,228,162,514,264,337,593,543,950,335.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the largest possible value of <see cref="T:System.Decimal" />. This field is constant and read-only.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="MinusOne">
<MemberSignature Language="ILASM" Value=".field public static initOnly decimal MinusOne" />
<MemberSignature Language="C#" Value="public static readonly decimal MinusOne;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Decimal MinusOne" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters />
<MemberValue>-1</MemberValue>
<Docs>
<remarks>
<para>The value of this constant is -1. The scale shall be 0.</para>
<para>This field is read-only.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the number negative one (-1).</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="MinValue">
<MemberSignature Language="ILASM" Value=".field public static initOnly decimal MinValue" />
<MemberSignature Language="C#" Value="public static readonly decimal MinValue;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Decimal MinValue" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters />
<MemberValue>-79228162514264337593543950335</MemberValue>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of this constant is negative 79,228,162,514,264,337,593,543,950,335.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the smallest possible value of <see cref="T:System.Decimal" />. This field is constant and read-only.</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Multiply">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Multiply(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal Multiply (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Multiply(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />. </exception>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Multiplies two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of multiplying <paramref name="d1" /> and <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The multiplicand. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The multiplier. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Negate">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Negate(decimal d)" />
<MemberSignature Language="C#" Value="public static decimal Negate (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Negate(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the result of multiplying the specified <see cref="T:System.Decimal" /> value by negative one.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A decimal number with the value of <paramref name="d" />, but the opposite sign.</para>
<para>-or- </para>
<para>Zero, if <paramref name="d" /> is zero.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The value to negate. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="One">
<MemberSignature Language="ILASM" Value=".field public static initOnly decimal One" />
<MemberSignature Language="C#" Value="public static readonly decimal One;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Decimal One" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters />
<MemberValue>1</MemberValue>
<Docs>
<remarks>
<para>The value of this constant is 1. The scale shall be 0.</para>
<para>This field is read-only.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the number one (1).</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Addition">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Addition(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal op_Addition (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Addition(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">The sum of <paramref name="d1" /> and <paramref name="d2" /> is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Addition(System.Decimal,System.Decimal)" /> method defines the operation of the addition operator for <see cref="T:System.Decimal" /> values. It enables code such as the following:</para>
<para>code reference: System.Decimal.Operators#3</para>
<para>If the language you're using doesn't support custom operators, call the <see cref="M:System.Decimal.Add(System.Decimal,System.Decimal)" /> method instead. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Adds two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of adding <paramref name="d1" /> and <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to add. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to add. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Decrement">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Decrement(decimal d)" />
<MemberSignature Language="C#" Value="public static decimal op_Decrement (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Decrement(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" /> .</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Decrement(System.Decimal)" /> method defines the operation of the decrement operator for <see cref="T:System.Decimal" /> values. It enables code such as the following:</para>
<para>code reference: System.Decimal.Operators#4</para>
<para>Some languages (such as Visual Basic) that lack an increment operator can call the <see cref="M:System.Decimal.op_Decrement(System.Decimal)" /> method directly, as the following example shows. </para>
<para>code reference: System.Decimal.Operators#5</para>
<para>If your language does not support custom operators, call the <see cref="M:System.Decimal.Subtract(System.Decimal,System.Decimal)" /> method instead, as the following example shows.</para>
<para>code reference: System.Decimal.Operators#6</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Decrements the <see cref="T:System.Decimal" /> operand by one.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of <paramref name="d" /> decremented by 1.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The value to decrement. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Division">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Division(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal op_Division (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Division(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.DivideByZeroException">The divisor is zero. </exception>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />.</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Division(System.Decimal,System.Decimal)" /> method defines the operation of the division operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#7</para>
<para>If the language you're using doesn't support custom operators, call the <see cref="M:System.Decimal.Divide(System.Decimal,System.Decimal)" /> method instead. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Divides two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of dividing <paramref name="d1" /> by <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The dividend. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The divisor. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Equality">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname bool op_Equality(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static bool op_Equality (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_Equality(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Equality(System.Decimal,System.Decimal)" /> method defines the operation of the equality operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#1</para>
<para>If the language you're using doesn't support custom operators, call the <see cref="M:System.Decimal.Equals(System.Decimal)" /> method instead. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value that indicates whether two <see cref="T:System.Decimal" /> values are equal.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="d1" /> and <paramref name="d2" /> are equal; otherwise, false.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname unsigned int8 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static byte op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname unsigned int8 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.Byte" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.Double" /> .</para>
</summary>
<returns>
<para> A <see cref="T:System.Double" /> with the specified value. </para>
</returns>
<remarks>
<para>
<block subset="none" type="note"> This operation can
produce round-off errors due to the fact that <see cref="T:System.Double" /> has fewer significant digits than, and has a different radix than, <see cref="T:System.Decimal" />.</block>
</para>
</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.Byte.MaxValue" /> or less than <see cref="F:System.Byte.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname valuetype System.Char op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static char op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname char op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Char</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.Char" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.Char" /> .</para>
</summary>
<returns>
<para> A <see cref="T:System.Char" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.Char.MaxValue" /> or less than <see cref="F:System.Char.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname float64 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static double op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname float64 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.Double" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.Double" /> .</para>
</summary>
<returns>
<para> A <see cref="T:System.Double" /> with the specified value. </para>
</returns>
<remarks>
<para>
<block subset="none" type="note"> This operation can
produce round-off errors due to the fact that <see cref="T:System.Double" /> has fewer significant digits than
<see cref="T:System.Decimal" />.</block>
</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname int16 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static short op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname int16 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.Int16" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.Int16" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.Int16" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.Int16.MaxValue" /> or less than <see cref="F:System.Int16.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname int32 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static int op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname int32 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.Int32" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.Int32" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.Int32" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.Int32.MaxValue" /> or less than <see cref="F:System.Int32.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname int64 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static long op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname int64 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.Int64" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.Int64" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.Int64" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.Int64.MaxValue" /> or less than <see cref="F:System.Int64.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname int8 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static sbyte op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname int8 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.SByte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.SByte" />.</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.SByte" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.SByte" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant
alternative to <see cref="T:System.SByte" />, use <see cref="T:System.Int16" /> .</para>
</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.SByte.MaxValue" /> or less than <see cref="F:System.SByte.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname float32 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static float op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname float32 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.Single" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.Int16" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.Int16" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant
alternative to <see cref="T:System.UInt16" />, use <see cref="T:System.Int32" /> .</para>
</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.Int16.MaxValue" /> or less than <see cref="F:System.Int16.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname unsigned int16 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static ushort op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname unsigned int16 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.UInt16" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.UInt16" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.UInt16" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant
alternative to <see cref="T:System.UInt16" />, use <see cref="T:System.Int32" /> .</para>
</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.UInt16.MaxValue" /> or less than <see cref="F:System.UInt16.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname unsigned int32 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static uint op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname unsigned int32 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.UInt32" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.UInt32" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.UInt32" /> containing <paramref name="value" /> rounded towards zero to the
nearest integer. </para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant
alternative to <see cref="T:System.UInt32" />, use <see cref="T:System.Int64" /> ). </para>
</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.UInt32.MaxValue" /> or less than <see cref="F:System.UInt32.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname unsigned int64 op_Explicit(decimal value)" />
<MemberSignature Language="C#" Value="public static ulong op_Explicit (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname unsigned int64 op_Explicit(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Decimal" /> value to convert to <see cref="T:System.UInt64" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Decimal" /> value to <see cref="T:System.UInt64" /> .</para>
</summary>
<returns>
<para>A <see cref="T:System.UInt64" /> containing
<paramref name="value" /> rounded towards zero to the nearest
integer. </para>
</returns>
<remarks>
<para>This member is not CLS-compliant. For a CLS-compliant
alternative to <see cref="T:System.UInt64" />, use <see cref="T:System.Int64" /> .</para>
</remarks>
<exception cref="T:System.OverflowException">The resulting integer value is greater than <see cref="F:System.UInt64.MaxValue" /> or less than <see cref="F:System.UInt64.MinValue" />.</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Explicit(float64 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Explicit (double value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Explicit(float64 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Double" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Double" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Double" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">
<para>
<paramref name="value" /> is one of the following:</para>
<para>greater than <see cref="F:System.Decimal.MaxValue" /></para>
<para>less than <see cref="F:System.Decimal.MinValue" /></para>
<para>equal to <see cref="F:System.Double.NaN" />, but the Decimal representation does not support NaNs.</para>
<para>equal to <see cref="F:System.Double.PositiveInfinity" />, but the Decimal representation does not support infinities.</para>
<para>equal to <see cref="F:System.Double.NegativeInfinity" />, but the Decimal representation does not support infinities.</para>
</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Explicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Explicit(float32 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Explicit (float value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Explicit(float32 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Single" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Single" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an explicit conversion of a <see cref="T:System.Single" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">
<para>
<paramref name="value" /> is one of the following:</para>
<para>greater than <see cref="F:System.Decimal.MaxValue" /></para>
<para>less than <see cref="F:System.Decimal.MinValue" /></para>
<para>equal to <see cref="F:System.Single.NaN" />, but the Decimal representation does not support NaNs.</para>
<para>equal to <see cref="F:System.Single.PositiveInfinity" />, but the Decimal representation does not support infinities.</para>
<para>equal to <see cref="F:System.Single.NegativeInfinity" />, but the Decimal representation does not support infinities.</para>
</exception>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_GreaterThan">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname bool op_GreaterThan(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static bool op_GreaterThan (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_GreaterThan(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_GreaterThan(System.Decimal,System.Decimal)" /> method defines the operation of the greater than operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#8</para>
<para>Languages that do not support custom operators can call the <see cref="M:System.Decimal.Compare(System.Decimal,System.Decimal)" /> method instead. They may also be able to call the <see cref="M:System.Decimal.op_GreaterThan(System.Decimal,System.Decimal)" /> method directly, as the following example shows. </para>
<para>code reference: System.Decimal.Operators#9</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value indicating whether a specified <see cref="T:System.Decimal" /> is greater than another specified <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="d1" /> is greater than <paramref name="d2" />; otherwise, false.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_GreaterThanOrEqual">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname bool op_GreaterThanOrEqual(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static bool op_GreaterThanOrEqual (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_GreaterThanOrEqual(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_GreaterThanOrEqual(System.Decimal,System.Decimal)" /> method defines the operation of the greater than or equal operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#10</para>
<para>Languages that do not support custom operators can call the <see cref="M:System.Decimal.Compare(System.Decimal,System.Decimal)" /> method instead. They may also be able to call the <see cref="M:System.Decimal.op_GreaterThanOrEqual(System.Decimal,System.Decimal)" /> method directly, as the following example shows. </para>
<para>code reference: System.Decimal.Operators#11</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value indicating whether a specified <see cref="T:System.Decimal" /> is greater than or equal to another specified <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="d1" /> is greater than or equal to <paramref name="d2" />; otherwise, false.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(unsigned int8 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (byte value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(unsigned int8 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Byte" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Byte" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.Byte" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(valuetype System.Char value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (char value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(char value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Char" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Char" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.Char" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(int16 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (short value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(int16 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Int16" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Int16" /> value to convert to <see cref="T:System.Decimal" />.</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.Int16" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(int32 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (int value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(int32 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Int32" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.Int32" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(int64 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (long value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(int64 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Int64" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.Int64" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.Int64" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>To be added.</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(int8 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (sbyte value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(int8 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.SByte" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.SByte" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.SByte" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>
<para>
This member is not CLS-compliant. </para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(unsigned int16 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (ushort value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(unsigned int16 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.UInt16" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.UInt16" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.UInt16" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>
<para> This member is not CLS-compliant.</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(unsigned int32 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (uint value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(unsigned int32 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.UInt32" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.UInt32" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.UInt32" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>
<para>
This member is not CLS-compliant. </para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Implicit(unsigned int64 value)" />
<MemberSignature Language="C#" Value="public static decimal op_Implicit (ulong value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Implicit(unsigned int64 value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.UInt64" />
</Parameters>
<Docs>
<param name="value">The <see cref="T:System.UInt64" /> value to convert to <see cref="T:System.Decimal" /> .</param>
<summary>
<para>Perform an implicit conversion of a <see cref="T:System.UInt64" /> value to <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<para>A <see cref="T:System.Decimal" />
with the
specified value.</para>
</returns>
<remarks>
<para>This member is not CLS-compliant.</para>
</remarks>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Increment">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Increment(decimal d)" />
<MemberSignature Language="C#" Value="public static decimal op_Increment (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Increment(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" /> .</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Increment(System.Decimal)" /> method defines the operation of the increment operator for <see cref="T:System.Decimal" /> values. It enables code such as the following:</para>
<para>code reference: System.Decimal.Operators#12</para>
<para>Some languages (such as Visual Basic) that lack an increment operator can call the <see cref="M:System.Decimal.op_Increment(System.Decimal)" /> method directly, as the following example shows. </para>
<para>code reference: System.Decimal.Operators#13</para>
<para>If your language does not support custom operators, call the <see cref="M:System.Decimal.Add(System.Decimal,System.Decimal)" /> method instead, as the following example shows.</para>
<para>code reference: System.Decimal.Operators#14</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Increments the <see cref="T:System.Decimal" /> operand by 1.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of <paramref name="d" /> incremented by 1.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The value to increment. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Inequality">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname bool op_Inequality(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static bool op_Inequality (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_Inequality(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Inequality(System.Decimal,System.Decimal)" /> method defines the operation of the inequality operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#2</para>
<para>If the language you're using doesn't support custom operators, you can test for inequality by using one of the following techniques:</para>
<list type="bullet">
<item>
<para>Calling the <see cref="M:System.Decimal.Compare(System.Decimal,System.Decimal)" /> method, which indicates the relationship between two <see cref="T:System.Decimal" /> values. </para>
</item>
<item>
<para>Calling the <see cref="M:System.Decimal.Equals(System.Decimal)" /> method and reversing its value. </para>
</item>
</list>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value that indicates whether two <see cref="T:System.Decimal" /> objects have different values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="d1" /> and <paramref name="d2" /> are not equal; otherwise, false.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_LessThan">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname bool op_LessThan(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static bool op_LessThan (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_LessThan(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_LessThan(System.Decimal,System.Decimal)" /> method defines the operation of the less than operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#15</para>
<para>Languages that do not support custom operators can call the <see cref="M:System.Decimal.Compare(System.Decimal,System.Decimal)" /> method instead. They may also be able to call the <see cref="M:System.Decimal.op_LessThan(System.Decimal,System.Decimal)" /> method directly, as the following example shows. </para>
<para>code reference: System.Decimal.Operators#16</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value indicating whether a specified <see cref="T:System.Decimal" /> is less than another specified <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="d1" /> is less than <paramref name="d2" />; otherwise, false.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_LessThanOrEqual">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname bool op_LessThanOrEqual(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static bool op_LessThanOrEqual (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_LessThanOrEqual(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_LessThanOrEqual(System.Decimal,System.Decimal)" /> method defines the operation of the less than or equal operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#17</para>
<para>Languages that do not support custom operators can call the <see cref="M:System.Decimal.Compare(System.Decimal,System.Decimal)" /> method instead. They may also be able to call the <see cref="M:System.Decimal.op_LessThanOrEqual(System.Decimal,System.Decimal)" /> method directly, as the following example shows. </para>
<para>code reference: System.Decimal.Operators#18</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns a value indicating whether a specified <see cref="T:System.Decimal" /> is less than or equal to another specified <see cref="T:System.Decimal" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if <paramref name="d1" /> is less than or equal to <paramref name="d2" />; otherwise, false.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to compare. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to compare. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Modulus">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Modulus(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal op_Modulus (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Modulus(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.DivideByZeroException">
<paramref name="d2" /> is zero. </exception>
<exception cref="T:System.OverflowException">
<paramref name="d1" /> divided by <paramref name="d2" /> is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Modulus(System.Decimal,System.Decimal)" /> method defines the operation of the modulus operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#19</para>
<para>If the language you're using doesn't support custom operators, call the <see cref="M:System.Decimal.Remainder(System.Decimal,System.Decimal)" /> method instead. </para>
<para>The sign of the value return by the modulus operation depends on the sign of dividend. If dividend is positive, the modulus operation returns a positive result; if it is negative, the modulus operation returns a negative result. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the remainder resulting from dividing two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The remainder resulting from dividing <paramref name="d1" /> by <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The dividend. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The divisor. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Multiply">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Multiply(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal op_Multiply (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Multiply(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />.</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Multiply(System.Decimal,System.Decimal)" /> method defines the operation of the multiplication operator for <see cref="T:System.Decimal" /> values. It enables code such as the following: </para>
<para>code reference: System.Decimal.Operators#20</para>
<para>If the language you're using doesn't support custom operators, call the <see cref="M:System.Decimal.Multiply(System.Decimal,System.Decimal)" /> method instead. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Multiplies two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of multiplying <paramref name="d1" /> by <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The first value to multiply. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The second value to multiply. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_Subtraction">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_Subtraction(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal op_Subtraction (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_Subtraction(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />. </exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_Subtraction(System.Decimal,System.Decimal)" /> method defines the operation of the subtraction operator for <see cref="T:System.Decimal" /> values. It enables code such as the following:</para>
<para>code reference: System.Decimal.Operators#21</para>
<para>If the language you're using doesn't support custom operators, call the <see cref="M:System.Decimal.Subtract(System.Decimal,System.Decimal)" /> method instead. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Subtracts two specified <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of subtracting <paramref name="d2" /> from <paramref name="d1" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The minuend. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The subtrahend. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_UnaryNegation">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_UnaryNegation(decimal d)" />
<MemberSignature Language="C#" Value="public static decimal op_UnaryNegation (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_UnaryNegation(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_UnaryPlus(System.Decimal)" /> method defines the operation of the unary negation operator (or the additive inverse operator) for <see cref="T:System.Decimal" /> values. The operation produces a value that results in 0 (zero) when it is added to the original number. Languages that do not support custom operators can call the <see cref="M:System.Decimal.Negate(System.Decimal)" /> method instead. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Negates the value of the specified <see cref="T:System.Decimal" /> operand.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of <paramref name="d" /> multiplied by negative one (-1).</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The value to negate. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="op_UnaryPlus">
<MemberSignature Language="ILASM" Value=".method public hidebysig static specialname decimal op_UnaryPlus(decimal d)" />
<MemberSignature Language="C#" Value="public static decimal op_UnaryPlus (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Decimal op_UnaryPlus(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.op_UnaryPlus(System.Decimal)" /> method defines the operation of the unary positive operator for <see cref="T:System.Decimal" /> values. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the value of the <see cref="T:System.Decimal" /> operand (the sign of the operand is unchanged).</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the operand, <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The operand to return.</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Parse">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Parse(string s)" />
<MemberSignature Language="C#" Value="public static decimal Parse (string s);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Parse(string s) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s " />is not in the correct format.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />.</exception>
<example>
<para>The following example demonstrates the <see cref="M:System.Decimal.Parse(System.String)" /> method.</para>
<code lang="C#">using System;
using System.Globalization;
class DecimalParseClass {
public static void Main() {
string s1 = " -1.001 ";
string s2 = "+1,000,111.99";
string s3 = "2.900";
Console.WriteLine("String: {0} (decimal) {1}",s1,Decimal.Parse(s1));
Console.WriteLine("String: {0} (decimal) {1}",s2,Decimal.Parse(s2));
Console.WriteLine("String: {0} (decimal) {1}",s3,Decimal.Parse(s3));
}
}
</code>
<para>The output is</para>
<c>
<para>String: -1.001 (decimal) -1.001</para>
<para>String: +1,000,111.99 (decimal) 1000111.99</para>
<para>String: 2.900 (decimal) 2.900</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Parameter <paramref name="s" /> contains a number of the form: </para>
<para>[ws][sign][digits,]digits[.fractional-digits][ws] </para>
<para>Elements in square brackets ([ and ]) are optional. The following table describes each element.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Element</para>
</term>
<description>
<para>Description</para>
</description>
</item>
</listheader>
<item>
<term>
<para>
ws
</para>
</term>
<description>
<para>Optional white space. </para>
</description>
</item>
<item>
<term>
<para>
sign
</para>
</term>
<description>
<para>An optional sign. </para>
</description>
</item>
<item>
<term>
<para>
digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. </para>
</description>
</item>
<item>
<term>
<para>
,
</para>
</term>
<description>
<para>A culture-specific thousands separator symbol.</para>
</description>
</item>
<item>
<term>
<para>
.
</para>
</term>
<description>
<para>A culture-specific decimal point symbol. </para>
</description>
</item>
<item>
<term>
<para>
fractional-digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. </para>
</description>
</item>
</list>
<para>Parameter <paramref name="s" /> is interpreted using the <see cref="F:System.Globalization.NumberStyles.Number" /> style. This means that white space and thousands separators are allowed but currency symbols are not. To explicitly define the elements (such as currency symbols, thousands separators, and white space) that can be present in <paramref name="s" />, use either the <see cref="M:System.Decimal.Parse(System.String,System.Globalization.NumberStyles)" /> or the <see cref="M:System.Decimal.Parse(System.String,System.Globalization.NumberStyles,System.IFormatProvider)" /> method.</para>
<para>Parameter <paramref name="s" /> is parsed using the formatting information in a <see cref="T:System.Globalization.NumberFormatInfo" /> initialized for the current system culture. For more information, see <see cref="P:System.Globalization.NumberFormatInfo.CurrentInfo" />. To parse a string using the formatting information of some other culture, use the <see cref="M:System.Decimal.Parse(System.String,System.IFormatProvider)" /> or <see cref="M:System.Decimal.Parse(System.String,System.Globalization.NumberStyles,System.IFormatProvider)" /> method.</para>
<para>If necessary, the value of <paramref name="s" /> is rounded using rounding to nearest.</para>
<para>A <see cref="T:System.Decimal" /> has 29 digits of precision. If <paramref name="s" /> represents a number that has more than 29 digits, but has a fractional part and is within the range of <see cref="F:System.Decimal.MaxValue" /> and <see cref="F:System.Decimal.MinValue" />, the number is rounded, not truncated, to 29 digits using rounding to nearest.</para>
<para>If during a parse operation a separator is encountered in the <paramref name="s" /> parameter, and the applicable currency or number decimal and group separators are the same, the parse operation assumes that the separator is a decimal separator rather than a group separator. For more information about separators, see <see cref="P:System.Globalization.NumberFormatInfo.CurrencyDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.NumberDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.CurrencyGroupSeparator" />, and <see cref="P:System.Globalization.NumberFormatInfo.NumberGroupSeparator" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the string representation of a number to its <see cref="T:System.Decimal" /> equivalent.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The equivalent to the number contained in <paramref name="s" />.</para>
</returns>
<param name="s">
<attribution license="cc4" from="Microsoft" modified="false" />The string representation of the number to convert.</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Parse">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Parse(string s, valuetype System.Globalization.NumberStyles style)" />
<MemberSignature Language="C#" Value="public static decimal Parse (string s, System.Globalization.NumberStyles style);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Parse(string s, valuetype System.Globalization.NumberStyles style) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="style" Type="System.Globalization.NumberStyles" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct style.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />.</exception>
<example>
<para>The following example demonstrates supplying <see cref="T:System.Globalization.NumberStyles" /> values to the <see cref="M:System.Decimal.Parse(System.String)" />
method to allow for a symbol separating groups
of digits, and a decimal separator. This example uses the symbols from the U.S.
English culture, namely a comma and a decimal point.</para>
<code lang="C#">using System;
using System.Globalization;
class DecimalParseClass {
public static void Main() {
string s = "1,000,111.99";
NumberStyles ns = NumberStyles.AllowThousands | NumberStyles.AllowDecimalPoint;
decimal d = Decimal.Parse(s,ns);
Console.WriteLine("{0} parsed to decimal {1}",s,d);
}
}
</code>
<para>The output is</para>
<c>
<para>1,000,111.99 parsed to decimal 1000111.99</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <paramref name="style" /> parameter defines the style elements (such as thousands separators, white space, and currency symbols) that are allowed in the <paramref name="s" /> parameter for the parse operation to succeed. It must be a combination of bit flags from the <see cref="T:System.Globalization.NumberStyles" /> enumeration. The following <see cref="T:System.Globalization.NumberStyles" /> members are not supported:</para>
<list type="bullet">
<item>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" />
</para>
</item>
<item>
<para>
<see cref="F:System.Globalization.NumberStyles.HexNumber" />
</para>
</item>
</list>
<para>Depending on the value of <paramref name="style" />, the <paramref name="s" /> parameter may include the following elements:</para>
<para>[ws][$][sign][digits,]digits[.fractional-digits][e[sign]digits][ws] </para>
<para>Elements in square brackets ([ and ]) are optional. The following table describes each element.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Element</para>
</term>
<description>
<para>Description</para>
</description>
</item>
</listheader>
<item>
<term>
<para>
ws
</para>
</term>
<description>
<para>Optional white space. White space can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /> flag, and it can appear at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
$
</para>
</term>
<description>
<para>A culture-specific currency symbol. Its position in the string is defined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencyNegativePattern" /> and <see cref="P:System.Globalization.NumberFormatInfo.CurrencyPositivePattern" /> properties of the current culture. The current culture's currency symbol can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
sign
</para>
</term>
<description>
<para>An optional sign. The sign can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /> flag, and it can appear at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" /> flag. Parentheses can be used in <paramref name="s" /> to indicate a negative value if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowParentheses" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. </para>
</description>
</item>
<item>
<term>
<para>
,
</para>
</term>
<description>
<para>A culture-specific thousands separator symbol. The current culture's thousands separator can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowThousands" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
.
</para>
</term>
<description>
<para>A culture-specific decimal point symbol. The current culture's decimal point symbol can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
fractional-digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. Fractional digits can appear in <paramref name="s" /> only if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> flag. </para>
</description>
</item>
<item>
<term>
<para>
e
</para>
</term>
<description>
<para>The 'e' or 'E' character, which indicates that the value is represented in exponential notation. The <paramref name="s" /> parameter can represent a number in exponential notation if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowExponent" /> flag.</para>
</description>
</item>
</list>
<para>A string with digits only (which corresponds to the <see cref="F:System.Globalization.NumberStyles.None" /> style) always parses successfully. The remaining <see cref="T:System.Globalization.NumberStyles" /> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <see cref="T:System.Globalization.NumberStyles" /> members affect the elements that may be present in <paramref name="s" />.</para>
<list type="table">
<listheader>
<item>
<term>
<para>NumberStyles value</para>
</term>
<description>
<para>Elements permitted in s in addition to digits</para>
</description>
</item>
</listheader>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.None" />
</para>
</term>
<description>
<para>The digits element only.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" />
</para>
</term>
<description>
<para>The . and fractional-digits elements.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowExponent" />
</para>
</term>
<description>
<para>The <paramref name="s" /> parameter can also use exponential notation. This flag supports values in the form digitsEdigits; additional flags are needed to successfully parse strings with elements such as positive or negative signs and decimal point symbols.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />
</para>
</term>
<description>
<para>The ws element at the beginning of <paramref name="s" />. </para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />
</para>
</term>
<description>
<para>The ws element at the end of <paramref name="s" />.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />
</para>
</term>
<description>
<para>The sign element at the beginning of <paramref name="s" />.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" />
</para>
</term>
<description>
<para>The sign element at the end of <paramref name="s" />.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowParentheses" />
</para>
</term>
<description>
<para>The sign element in the form of parentheses enclosing the numeric value.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowThousands" />
</para>
</term>
<description>
<para>The , element.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" />
</para>
</term>
<description>
<para> The $ element.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Currency" />
</para>
</term>
<description>
<para>All. The <paramref name="s" /> parameter cannot represent a hexadecimal number or a number in exponential notation.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Float" />
</para>
</term>
<description>
<para>The ws element at the beginning or end of <paramref name="s" />, sign at the beginning of <paramref name="s" />, and the . symbol. The <paramref name="s" /> parameter can also use exponential notation.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Number" />
</para>
</term>
<description>
<para>The <paramref name="ws" />, <paramref name="sign" />, ,, and . elements.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Any" />
</para>
</term>
<description>
<para>All styles, except <paramref name="s" /> cannot represent a hexadecimal number.</para>
</description>
</item>
</list>
<para>The <paramref name="s" /> parameter is parsed using the formatting information in a <see cref="T:System.Globalization.NumberFormatInfo" /> object initialized for the current system culture. For more information, see <see cref="P:System.Globalization.NumberFormatInfo.CurrentInfo" />.</para>
<para>A <see cref="T:System.Decimal" /> has 29 digits of precision. If <paramref name="s" /> represents a number that has more than 29 digits, but has a fractional part and is within the range of <see cref="F:System.Decimal.MaxValue" /> and <see cref="F:System.Decimal.MinValue" />, the number is rounded, not truncated, to 29 digits using rounding to nearest.</para>
<para>If a separator is encountered in the <paramref name="s" /> parameter during a parse operation, <paramref name="styles" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowThousands" /> and <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> values, and the applicable currency or number decimal and group separators are the same, the parse operation assumes that the separator is a decimal separator rather than a group separator. For more information about separators, see <see cref="P:System.Globalization.NumberFormatInfo.CurrencyDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.NumberDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.CurrencyGroupSeparator" />, and <see cref="P:System.Globalization.NumberFormatInfo.NumberGroupSeparator" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the string representation of a number in a specified style to its <see cref="T:System.Decimal" /> equivalent.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Decimal" /> number equivalent to the number contained in <paramref name="s" /> as specified by <paramref name="style" />.</para>
</returns>
<param name="s">
<attribution license="cc4" from="Microsoft" modified="false" />The string representation of the number to convert. </param>
<param name="style">
<attribution license="cc4" from="Microsoft" modified="false" />A bitwise combination of <see cref="T:System.Globalization.NumberStyles" /> values that indicates the style elements that can be present in <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Number" />.</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Parse">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Parse(string s, class System.IFormatProvider provider)" />
<MemberSignature Language="C#" Value="public static decimal Parse (string s, IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Parse(string s, class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct style.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />.</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="s" /> is a null reference.</exception>
<example>
<para>The following example demonstrates supplying a <see cref="T:System.IFormatProvider" /> to the
<see cref="M:System.Decimal.Parse(System.String)" />
method to allow a decimal point, and commas separating groups of digits.</para>
<code lang="C#">using System;
using System.Globalization;
class DecimalParseClass {
public static void Main() {
string s = "1,000,111.99";
//Get the default formatting symbols.
NumberFormatInfo nfi = new NumberFormatInfo();
// Default group separator is ','
// Default decimal separator is '.'
decimal d = Decimal.Parse(s,nfi);
Console.WriteLine("{0} parsed to decimal {1}",s,d);
}
}
</code>
<para>The output is</para>
<para>
<c>1,000,111.99
parsed to decimal 1000111.99</c>
</para>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This overload of the <see cref="M:System.Decimal.Parse(System.String,System.IFormatProvider)" /> method is commonly used to convert text that can be formatted in a variety of ways to a <see cref="T:System.Decimal" /> value. For example, it can be used to convert the text entered by a user into an HTML text box to a numeric value.</para>
<para>The <paramref name="s" /> parameter contains a number of the form: </para>
<para>[ws][sign][digits,]digits[.fractional-digits][ws] </para>
<para>Elements in square brackets ([ and ]) are optional. The following table describes each element.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Element</para>
</term>
<description>
<para>Description</para>
</description>
</item>
</listheader>
<item>
<term>
<para>
ws
</para>
</term>
<description>
<para>Optional white space. </para>
</description>
</item>
<item>
<term>
<para>
sign
</para>
</term>
<description>
<para>An optional sign. </para>
</description>
</item>
<item>
<term>
<para>
digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. </para>
</description>
</item>
<item>
<term>
<para>
,
</para>
</term>
<description>
<para>A culture-specific thousands separator symbol.</para>
</description>
</item>
<item>
<term>
<para>
.
</para>
</term>
<description>
<para>A culture-specific decimal point symbol. </para>
</description>
</item>
<item>
<term>
<para>
fractional-digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. </para>
</description>
</item>
</list>
<para>The <paramref name="s" /> parameter is interpreted using the <see cref="F:System.Globalization.NumberStyles.Number" /> style. This means that white space and thousands separators are allowed but currency symbols are not. To explicitly define the elements (such as currency symbols, thousands separators, and white space) that can be present in <paramref name="s" />, use the <see cref="M:System.Decimal.Parse(System.String,System.Globalization.NumberStyles,System.IFormatProvider)" /> method.</para>
<para>The <paramref name="provider" /> parameter is an <see cref="T:System.IFormatProvider" /> implementation, such as a <see cref="T:System.Globalization.NumberFormatInfo" /> or <see cref="T:System.Globalization.CultureInfo" /> object. The <paramref name="provider" /> parameter supplies culture-specific information used in parsing. If <paramref name="provider" /> is null, the thread current culture is used.</para>
<para>A <see cref="T:System.Decimal" /> object has 29 digits of precision. If <paramref name="s" /> represents a number that has more than 29 digits, but has a fractional part and is within the range of <see cref="F:System.Decimal.MaxValue" /> and <see cref="F:System.Decimal.MinValue" />, the number is rounded, not truncated, to 29 digits using rounding to nearest.</para>
<para>If a separator is encountered in the <paramref name="s" /> parameter during a parse operation, and the applicable currency or number decimal and group separators are the same, the parse operation assumes that the separator is a decimal separator rather than a group separator. For more information about separators, see <see cref="P:System.Globalization.NumberFormatInfo.CurrencyDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.NumberDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.CurrencyGroupSeparator" />, and <see cref="P:System.Globalization.NumberFormatInfo.NumberGroupSeparator" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the string representation of a number to its <see cref="T:System.Decimal" /> equivalent using the specified culture-specific format information.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Decimal" /> number equivalent to the number contained in <paramref name="s" /> as specified by <paramref name="provider" />.</para>
</returns>
<param name="s">
<attribution license="cc4" from="Microsoft" modified="false" />The string representation of the number to convert. </param>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.IFormatProvider" /> that supplies culture-specific parsing information about <paramref name="s" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Parse">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Parse(string s, valuetype System.Globalization.NumberStyles style, class System.IFormatProvider provider)" />
<MemberSignature Language="C#" Value="public static decimal Parse (string s, System.Globalization.NumberStyles style, IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Parse(string s, valuetype System.Globalization.NumberStyles style, class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="style" Type="System.Globalization.NumberStyles" />
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentNullException">
<para>
<paramref name="s" /> is a null reference. </para>
</exception>
<exception cref="T:System.FormatException">
<paramref name="s" /> is not in the correct style.</exception>
<exception cref="T:System.OverflowException">
<paramref name="s" /> represents a number greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />.</exception>
<example>
<para>The following example demonstrates supplying <see cref="T:System.Globalization.NumberStyles" /> values and a <see cref="T:System.IFormatProvider" /> to the
<see cref="M:System.Decimal.Parse(System.String)" />
method to allow colons separating
groups of digits, and a decimal point.</para>
<code lang="C#">using System;
using System.Globalization;
class DecimalParseClass {
public static void Main() {
string s = "1:000:111.99";
NumberStyles ns = NumberStyles.AllowThousands | NumberStyles.AllowDecimalPoint;
NumberFormatInfo nfi = new NumberFormatInfo();
//Change the format info to separate digit groups using a colon.
nfi.NumberGroupSeparator = ":";
decimal d = Decimal.Parse(s,ns,nfi);
Console.WriteLine("{0} parsed to decimal {1}",s,d);
}
}
</code>
<para>The output is</para>
<c>
<para>1:000:111.99 parsed to decimal 1000111.99</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <paramref name="style" /> parameter defines the allowable format of the <paramref name="s" /> parameter for the parse operation to succeed. It must be a combination of bit flags from the <see cref="T:System.Globalization.NumberStyles" /> enumeration. The following <see cref="T:System.Globalization.NumberStyles" /> members are not supported:</para>
<list type="bullet">
<item>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowHexSpecifier" />
</para>
</item>
<item>
<para>
<see cref="F:System.Globalization.NumberStyles.HexNumber" />
</para>
</item>
</list>
<para>Depending on the value of <paramref name="style" />, the <paramref name="s" /> parameter may include the following elements:</para>
<para> [ws][$][sign][digits,]digits[.fractional-digits][e[sign]digits][ws] </para>
<para>Elements in square brackets ([ and ]) are optional. The following table describes each element.</para>
<list type="table">
<listheader>
<item>
<term>
<para>Element</para>
</term>
<description>
<para>Description</para>
</description>
</item>
</listheader>
<item>
<term>
<para>
$
</para>
</term>
<description>
<para>A culture-specific currency symbol. Its position in the string is defined by the <see cref="P:System.Globalization.NumberFormatInfo.CurrencyNegativePattern" /> and <see cref="P:System.Globalization.NumberFormatInfo.CurrencyPositivePattern" /> properties of the <see cref="T:System.Globalization.NumberFormatInfo" /> object returned by the <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method of the <paramref name="provider" /> parameter. The currency symbol can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
ws
</para>
</term>
<description>
<para>Optional white space. White space can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" /> flag, and it can appear at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
sign
</para>
</term>
<description>
<para>An optional sign. The sign can appear at the beginning of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" /> flag, and it can appear at the end of <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" /> flag. Parentheses can be used in <paramref name="s" /> to indicate a negative value if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowParentheses" /> flag. </para>
</description>
</item>
<item>
<term>
<para>
digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. </para>
</description>
</item>
<item>
<term>
<para>
,
</para>
</term>
<description>
<para>A culture-specific thousands separator symbol. The thousands separator of the culture defined by <paramref name="provider" /> can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowThousands" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
.
</para>
</term>
<description>
<para>A culture-specific decimal point symbol. The decimal point symbol of the culture defined by <paramref name="provider" /> can appear in <paramref name="s" /> if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
fractional-digits
</para>
</term>
<description>
<para>A sequence of digits ranging from 0 to 9. Fractional digits can appear in <paramref name="s" /> only if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" /> flag.</para>
</description>
</item>
<item>
<term>
<para>
e
</para>
</term>
<description>
<para>The 'e' or 'E' character, which indicates that the value is represented in exponential notation. The <paramref name="s" /> parameter can represent a number in exponential notation if <paramref name="style" /> includes the <see cref="F:System.Globalization.NumberStyles.AllowExponent" /> flag.</para>
</description>
</item>
</list>
<para>A string with digits only (which corresponds to the <see cref="F:System.Globalization.NumberStyles.None" /> style) always parses successfully. The remaining <see cref="T:System.Globalization.NumberStyles" /> members control elements that may be but are not required to be present in the input string. The following table indicates how individual <see cref="T:System.Globalization.NumberStyles" /> members affect the elements that may be present in <paramref name="s" />.</para>
<list type="table">
<listheader>
<item>
<term>
<para>NumberStyles value</para>
</term>
<description>
<para>Elements permitted in s in addition to digits</para>
</description>
</item>
</listheader>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.None" />
</para>
</term>
<description>
<para>The digits element only.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowDecimalPoint" />
</para>
</term>
<description>
<para>The . and fractional-digits elements.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowExponent" />
</para>
</term>
<description>
<para>The <paramref name="s" /> parameter can also use exponential notation. This flag supports values in the form digitsEdigits; additional flags are needed to successfully parse strings with elements such as positive or negative signs and decimal point symbols.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowLeadingWhite" />
</para>
</term>
<description>
<para>The ws element at the beginning of <paramref name="s" />. </para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowTrailingWhite" />
</para>
</term>
<description>
<para>The ws element at the end of <paramref name="s" />.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowLeadingSign" />
</para>
</term>
<description>
<para>The sign element at the beginning of <paramref name="s" />.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowTrailingSign" />
</para>
</term>
<description>
<para>The sign element at the end of <paramref name="s" />.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowParentheses" />
</para>
</term>
<description>
<para>The sign element in the form of parentheses enclosing the numeric value.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowThousands" />
</para>
</term>
<description>
<para>The , element.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.AllowCurrencySymbol" />
</para>
</term>
<description>
<para> The $ element.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Currency" />
</para>
</term>
<description>
<para>All. The <paramref name="s" /> parameter cannot represent a hexadecimal number or a number in exponential notation.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Float" />
</para>
</term>
<description>
<para>The ws element at the beginning or end of <paramref name="s" />, sign at the beginning of <paramref name="s" />, and the .
symbol. The <paramref name="s" /> parameter can also use exponential notation.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Number" />
</para>
</term>
<description>
<para>The <paramref name="ws" />, <paramref name="sign" />, ,, and . elements.</para>
</description>
</item>
<item>
<term>
<para>
<see cref="F:System.Globalization.NumberStyles.Any" />
</para>
</term>
<description>
<para>All styles, except <paramref name="s" /> cannot represent a hexadecimal number.</para>
</description>
</item>
</list>
<para>The <paramref name="provider" /> parameter is an <see cref="T:System.IFormatProvider" /> implementation, such as a <see cref="T:System.Globalization.NumberFormatInfo" /> or <see cref="T:System.Globalization.CultureInfo" /> object. The <paramref name="provider" /> parameter supplies culture-specific information used in parsing. If <paramref name="provider" /> is null, the thread current culture is used.</para>
<para>A <see cref="T:System.Decimal" /> object has 29 digits of precision. If <paramref name="s" /> represents a number that has more than 29 digits, but has a fractional part and is within the range of <see cref="F:System.Decimal.MaxValue" /> and <see cref="F:System.Decimal.MinValue" />, the number is rounded, not truncated, to 29 digits using rounding to nearest.</para>
<para>If a separator is encountered in the <paramref name="s" /> parameter during a parse operation, and the applicable currency or number decimal and group separators are the same, the parse operation assumes that the separator is a decimal separator rather than a group separator. For more information about separators, see <see cref="P:System.Globalization.NumberFormatInfo.CurrencyDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.NumberDecimalSeparator" />, <see cref="P:System.Globalization.NumberFormatInfo.CurrencyGroupSeparator" />, and <see cref="P:System.Globalization.NumberFormatInfo.NumberGroupSeparator" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the string representation of a number to its <see cref="T:System.Decimal" /> equivalent using the specified style and culture-specific format.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="T:System.Decimal" /> number equivalent to the number contained in <paramref name="s" /> as specified by <paramref name="style" /> and <paramref name="provider" />.</para>
</returns>
<param name="s">
<attribution license="cc4" from="Microsoft" modified="false" />The string representation of the number to convert. </param>
<param name="style">
<attribution license="cc4" from="Microsoft" modified="false" />A bitwise combination of <see cref="T:System.Globalization.NumberStyles" /> values that indicates the style elements that can be present in <paramref name="s" />. A typical value to specify is <see cref="F:System.Globalization.NumberStyles.Number" />.</param>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.IFormatProvider" /> object that supplies culture-specific information about the format of <paramref name="s" />. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Remainder">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Remainder(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal Remainder (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Remainder(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<exception cref="T:System.DivideByZeroException">
<paramref name="d2" /> is zero.</exception>
<exception cref="T:System.OverflowException">
<paramref name="d1" /> divided by <paramref name="d2" /> is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />.</exception>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The divisor. </param>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Computes the remainder after dividing two <see cref="T:System.Decimal" /> values.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The remainder after dividing <paramref name="d1" /> by <paramref name="d2" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The dividend. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The divisor. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Round">
<MemberSignature Language="C#" Value="public static decimal Round (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Round(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called <newTerm>rounding to nearest</newTerm> or <newTerm>banker's rounding</newTerm>. It minimizes rounding errors that result from consistently rounding a midpoint value in a single direction. It is equivalent to calling the <see cref="M:System.Decimal.Round(System.Decimal,System.MidpointRounding)" /> method with a <paramref name="mode" /> argument of <see cref="F:System.MidpointRounding.ToEven" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Rounds a decimal value to the nearest integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The integer that is nearest to the <paramref name="d" /> parameter. If <paramref name="d" /> is halfway between two integers, one of which is even and the other odd, the even number is returned.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />A decimal number to round. </param>
</Docs>
</Member>
<Member MemberName="Round">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Round(decimal d, int32 decimals)" />
<MemberSignature Language="C#" Value="public static decimal Round (decimal d, int decimals);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Round(valuetype System.Decimal d, int32 decimals) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
<Parameter Name="decimals" Type="System.Int32" />
</Parameters>
<Docs>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="decimals" /> is not between 0 and 28, inclusive. </exception>
<example>
<para>The following example demonstrates the <see cref="M:System.Decimal.Round(System.Decimal,System.Int32)" /> method.</para>
<code lang="C#">using System;
class MyClass {
public static void Main() {
decimal d1 = 2.5m;
decimal d2 = 3.5m;
decimal d3 = 2.98765432m;
decimal d4 = 2.18765432m;
Console.WriteLine("Rounding to 0 places...");
Console.WriteLine("round {0} = {1}",d1, Decimal.Round(d1,0));
Console.WriteLine("round {0} = {1}",d2, Decimal.Round(d2,0));
Console.WriteLine("round {0} = {1}",d3, Decimal.Round(d3,0));
Console.WriteLine("round {0} = {1}",d4, Decimal.Round(d4,0));
Console.WriteLine("Rounding to 2 places...");
Console.WriteLine("round {0} = {1}",d1, Decimal.Round(d1,2));
Console.WriteLine("round {0} = {1}",d2, Decimal.Round(d2,2));
Console.WriteLine("round {0} = {1}",d3, Decimal.Round(d3,2));
Console.WriteLine("round {0} = {1}",d4, Decimal.Round(d4,2));
}
}
</code>
<para>The output is</para>
<c>
<para>Rounding to 0 places...</para>
<para>round 2.5 = 2</para>
<para>round 3.5 = 4</para>
<para>round 2.98765432 = 3</para>
<para>round 2.18765432 = 2</para>
<para>Rounding to 2 places...</para>
<para>round 2.5 = 2.5</para>
<para>round 3.5 = 3.5</para>
<para>round 2.98765432 = 2.99</para>
<para>round 2.18765432 = 2.19</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method is equivalent to calling the <see cref="M:System.Decimal.Round(System.Decimal,System.Int32,System.MidpointRounding)" /> method with a <paramref name="mode" /> argument of <see cref="F:System.MidpointRounding.ToEven" />.When <paramref name="d" /> is exactly halfway between two rounded values, the result is the rounded value that has an even digit in the far right decimal position. For example, when rounded to two decimals, the value 2.345 becomes 2.34 and the value 2.355 becomes 2.36. This process is known as <newTerm>rounding toward even</newTerm>, or <newTerm>rounding to nearest</newTerm>. It minimizes rounding errors that result from consistently rounding a midpoint value in a single direction.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Rounds a <see cref="T:System.Decimal" /> value to a specified number of decimal places.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The decimal number equivalent to <paramref name="d" /> rounded to <paramref name="decimals" /> number of decimal places.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />A decimal number to round. </param>
<param name="decimals">
<attribution license="cc4" from="Microsoft" modified="false" />A value from 0 to 28 that specifies the number of decimal places to round to. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="Round">
<MemberSignature Language="C#" Value="public static decimal Round (decimal d, MidpointRounding mode);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Round(valuetype System.Decimal d, valuetype System.MidpointRounding mode) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
<Parameter Name="mode" Type="System.MidpointRounding" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding to nearest or banker's rounding. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The integer that is nearest to the <paramref name="d" /> parameter. If <paramref name="d" /> is halfway between two numbers, one of which is even and the other odd, the <paramref name="mode" /> parameter determines which of the two numbers is returned. </para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />A decimal number to round. </param>
<param name="mode">
<attribution license="cc4" from="Microsoft" modified="false" />A value that specifies how to round <paramref name="d" /> if it is midway between two other numbers.</param>
</Docs>
</Member>
<Member MemberName="Round">
<MemberSignature Language="C#" Value="public static decimal Round (decimal d, int decimals, MidpointRounding mode);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Round(valuetype System.Decimal d, int32 decimals, valuetype System.MidpointRounding mode) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
<Parameter Name="decimals" Type="System.Int32" />
<Parameter Name="mode" Type="System.MidpointRounding" />
</Parameters>
<Docs>
<since version=".NET 2.0" />
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <paramref name="decimals" /> parameter specifies the number of significant decimal places in the return value and ranges from 0 to 28. If <paramref name="decimals" /> is zero, an integer is returned.</para>
<para>The behavior of this method follows IEEE Standard 754, section 4. This kind of rounding is sometimes called rounding to nearest or banker's rounding. If <paramref name="decimals" /> is zero, this kind of rounding is sometimes called rounding toward zero.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Rounds a decimal value to a specified precision. A parameter specifies how to round the value if it is midway between two other numbers.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The number that is nearest to the <paramref name="d" /> parameter with a precision equal to the <paramref name="decimals" /> parameter. If <paramref name="d" /> is halfway between two numbers, one of which is even and the other odd, the <paramref name="mode" /> parameter determines which of the two numbers is returned. If the precision of <paramref name="d" /> is less than <paramref name="decimals" />, <paramref name="d" /> is returned unchanged.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />A decimal number to round. </param>
<param name="decimals">
<attribution license="cc4" from="Microsoft" modified="false" />The number of significant decimal places (precision) in the return value. </param>
<param name="mode">
<attribution license="cc4" from="Microsoft" modified="false" />A value that specifies how to round <paramref name="d" /> if it is midway between two other numbers.</param>
</Docs>
</Member>
<Member MemberName="Subtract">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Subtract(decimal d1, decimal d2)" />
<MemberSignature Language="C#" Value="public static decimal Subtract (decimal d1, decimal d2);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Subtract(valuetype System.Decimal d1, valuetype System.Decimal d2) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d1" Type="System.Decimal" />
<Parameter Name="d2" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<exception cref="T:System.OverflowException">The result is greater than <see cref="F:System.Decimal.MaxValue" /> or less than <see cref="F:System.Decimal.MinValue" />. </exception>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Subtracts one specified <see cref="T:System.Decimal" /> value from another.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of subtracting <paramref name="d2" /> from <paramref name="d1" />.</para>
</returns>
<param name="d1">
<attribution license="cc4" from="Microsoft" modified="false" />The minuend. </param>
<param name="d2">
<attribution license="cc4" from="Microsoft" modified="false" />The subtrahend. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="System.IConvertible.ToBoolean">
<MemberSignature Language="C#" Value="bool IConvertible.ToBoolean (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance bool System.IConvertible.ToBoolean(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the <see cref="M:System.Convert.ToBoolean(System.Decimal)" /> method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToBoolean(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>
true if the value of the current instance is not zero; otherwise, false.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored. </param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToByte">
<MemberSignature Language="C#" Value="byte IConvertible.ToByte (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int8 System.IConvertible.ToByte(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToByte(System.Decimal)" /> method or the <see cref="M:System.Convert.ToByte(System.Decimal)" /> method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToByte(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.Byte" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToChar">
<MemberSignature Language="C#" Value="char IConvertible.ToChar (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance char System.IConvertible.ToChar(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Char</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This conversion is not supported. Attempting to use this method throws an <see cref="T:System.InvalidCastException" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>None. This conversion is not supported. </para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToDateTime">
<MemberSignature Language="C#" Value="DateTime IConvertible.ToDateTime (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance valuetype System.DateTime System.IConvertible.ToDateTime(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.DateTime</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This conversion is not supported. Attempting to use this method throws an <see cref="T:System.InvalidCastException" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>None. This conversion is not supported. </para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToDecimal">
<MemberSignature Language="C#" Value="decimal IConvertible.ToDecimal (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance valuetype System.Decimal System.IConvertible.ToDecimal(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToDecimal(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, unchanged.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToDouble">
<MemberSignature Language="C#" Value="double IConvertible.ToDouble (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance float64 System.IConvertible.ToDouble(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToDouble(System.Decimal)" /> method or the <see cref="M:System.Convert.ToDouble(System.Decimal)" /> method.</para>
<para>Because a <see cref="T:System.Double" /> has fewer significant digits than a <see cref="T:System.Decimal" />, this operation may produce round-off errors.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToDouble(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.Double" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToInt16">
<MemberSignature Language="C#" Value="short IConvertible.ToInt16 (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int16 System.IConvertible.ToInt16(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToInt16(System.Decimal)" /> method or the <see cref="M:System.Convert.ToInt16(System.Decimal)" /> method.</para>
<para>The <see cref="T:System.Decimal" /> value is rounded toward zero to the nearest integer value.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToInt16(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.Int16" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToInt32">
<MemberSignature Language="C#" Value="int IConvertible.ToInt32 (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int32 System.IConvertible.ToInt32(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToInt32(System.Decimal)" /> method or the <see cref="M:System.Convert.ToInt32(System.Decimal)" /> method.</para>
<para>The <see cref="T:System.Decimal" /> value is rounded toward zero to the nearest integer value.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToInt32(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.Int32" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />The parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToInt64">
<MemberSignature Language="C#" Value="long IConvertible.ToInt64 (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int64 System.IConvertible.ToInt64(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToInt64(System.Decimal)" /> method or the <see cref="M:System.Convert.ToInt64(System.Decimal)" /> method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToInt64(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.Int64" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToSByte">
<MemberSignature Language="C#" Value="sbyte IConvertible.ToSByte (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance int8 System.IConvertible.ToSByte(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.SByte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToSByte(System.Decimal)" /> method or the <see cref="M:System.Convert.ToSByte(System.Decimal)" /> method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToSByte(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.SByte" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToSingle">
<MemberSignature Language="C#" Value="float IConvertible.ToSingle (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance float32 System.IConvertible.ToSingle(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToSingle(System.Decimal)" /> method or the <see cref="M:System.Convert.ToSingle(System.Decimal)" /> method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToSingle(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.Single" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToType">
<MemberSignature Language="C#" Value="object IConvertible.ToType (Type targetType, IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance object System.IConvertible.ToType(class System.Type targetType, class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="targetType" Type="System.Type" />
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<param name="targetType">To be added.</param>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call the static (Shared in Visual Basic) <see cref="M:System.Convert.ChangeType(System.Object,System.Type,System.IFormatProvider)" /> method instead.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToType(System.Type,System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <paramref name="type" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.IFormatProvider" /> implementation that supplies culture-specific information about the format of the returned value.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToUInt16">
<MemberSignature Language="C#" Value="ushort IConvertible.ToUInt16 (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int16 System.IConvertible.ToUInt16(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.UInt16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToUInt16(System.Decimal)" /> method or the <see cref="M:System.Convert.ToUInt16(System.Decimal)" /> method.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToUInt16(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.UInt16" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToUInt32">
<MemberSignature Language="C#" Value="uint IConvertible.ToUInt32 (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int32 System.IConvertible.ToUInt32(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToUInt32(System.Decimal)" /> method or the <see cref="M:System.Convert.ToUInt32(System.Decimal)" /> method.</para>
<para>The <see cref="T:System.Decimal" /> value is rounded toward zero to the nearest integer value.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToInt32(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.UInt32" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.IConvertible.ToUInt64">
<MemberSignature Language="C#" Value="ulong IConvertible.ToUInt64 (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance unsigned int64 System.IConvertible.ToUInt64(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.UInt64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This member is an explicit interface member implementation. It can be used only when the <see cref="T:System.Decimal" /> instance is cast to an <see cref="T:System.IConvertible" /> interface. The recommended alternative is to call either the <see cref="M:System.Decimal.ToUInt64(System.Decimal)" /> method or the <see cref="M:System.Convert.ToUInt64(System.Decimal)" /> method.</para>
<para>The <see cref="T:System.Decimal" /> value is rounded toward zero to the nearest integer value.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>For a description of this member, see <see cref="M:System.IConvertible.ToInt64(System.IFormatProvider)" />.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The value of the current instance, converted to a <see cref="T:System.UInt64" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />This parameter is ignored.</param>
</Docs>
</Member>
<Member MemberName="System.Runtime.Serialization.IDeserializationCallback.OnDeserialization">
<MemberSignature Language="C#" Value="void IDeserializationCallback.OnDeserialization (object sender);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void System.Runtime.Serialization.IDeserializationCallback.OnDeserialization(object sender) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="sender" Type="System.Object" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Runs when the deserialization of an object has been completed.</para>
</summary>
<param name="sender">
<attribution license="cc4" from="Microsoft" modified="false" />The object that initiated the callback. The functionality for this parameter is not currently implemented.</param>
</Docs>
</Member>
<Member MemberName="ToByte">
<MemberSignature Language="C#" Value="public static byte ToByte (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int8 ToByte(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Byte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Parameter <paramref name="value" /> is rounded to the nearest integer value toward zero, and that result is returned.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 8-bit unsigned integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An 8-bit unsigned integer equivalent to <paramref name="value" />.</para>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToDouble">
<MemberSignature Language="C#" Value="public static double ToDouble (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig float64 ToDouble(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Double</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This operation can produce round-off errors because a double-precision floating-point number has fewer significant digits than a <see cref="T:System.Decimal" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent double-precision floating-point number.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A double-precision floating-point number equivalent to <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToInt16">
<MemberSignature Language="C#" Value="public static short ToInt16 (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int16 ToInt16(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 16-bit signed integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 16-bit signed integer equivalent to <paramref name="value" />.</para>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToInt32">
<MemberSignature Language="C#" Value="public static int ToInt32 (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int32 ToInt32(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The return value is the integral part of the decimal value; fractional digits are truncated.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 32-bit signed integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 32-bit signed integer equivalent to the value of <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToInt64">
<MemberSignature Language="C#" Value="public static long ToInt64 (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 ToInt64(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The return value is the integral part of the decimal value; fractional digits are truncated.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 64-bit signed integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 64-bit signed integer equivalent to the value of <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToOACurrency">
<MemberSignature Language="C#" Value="public static long ToOACurrency (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int64 ToOACurrency(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the specified <see cref="T:System.Decimal" /> value to the equivalent OLE Automation Currency value, which is contained in a 64-bit signed integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 64-bit signed integer that contains the OLE Automation equivalent of <paramref name="value" />.</para>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToSByte">
<MemberSignature Language="C#" Value="public static sbyte ToSByte (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig int8 ToSByte(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.SByte</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>To be added.</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 8-bit signed integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>An 8-bit signed integer equivalent to <paramref name="value" />.</para>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToSingle">
<MemberSignature Language="C#" Value="public static float ToSingle (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig float32 ToSingle(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Single</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This operation can produce round-off errors because a single-precision floating-point number has fewer significant digits than a <see cref="T:System.Decimal" />.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent single-precision floating-point number.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A single-precision floating-point number equivalent to the value of <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig virtual string ToString()" />
<MemberSignature Language="C#" Value="public override string ToString ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.ToString" /> method formats a <see cref="T:System.Decimal" /> value in the default ("G", or general) format of the current culture. If you want to specify a different format or culture, use the other overloads of the <see cref="M:System.Decimal.ToString(System.String)" /> method, as follows: </para>
<list type="table">
<listheader>
<item>
<term>
<para>To use format</para>
</term>
<description>
<para>For culture</para>
</description>
<description>
<para>Use the overload</para>
</description>
</item>
</listheader>
<item>
<term>
<para>Default ("G") format</para>
</term>
<description>
<para>A specific culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString(System.IFormatProvider)" />
</para>
</description>
</item>
<item>
<term>
<para>A specific format</para>
</term>
<description>
<para>Default (current) culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString(System.String)" />
</para>
</description>
</item>
<item>
<term>
<para>A specific format</para>
</term>
<description>
<para>A specific culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString(System.String,System.IFormatProvider)" />
</para>
</description>
</item>
</list>
<para>
</para>
<para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para>
<list type="bullet">
<item>
<para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para>
</item>
<item>
<para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para>
</item>
</list>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the numeric value of this instance to its equivalent string representation.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A string that represents the value of this instance.</para>
</returns>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public final hidebysig virtual string ToString(class System.IFormatProvider provider)" />
<MemberSignature Language="C#" Value="public string ToString (IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance string ToString(class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.ToString(System.IFormatProvider)" /> method formats a <see cref="T:System.Decimal" /> value in the default ("G", or general) format of a specified culture. If you want to specify a different format or the current culture, use the other overloads of the <see cref="M:System.Decimal.ToString(System.String)" /> method, as follows:</para>
<list type="table">
<listheader>
<item>
<term>
<para>To use format</para>
</term>
<description>
<para>For culture</para>
</description>
<description>
<para>Use the overload</para>
</description>
</item>
</listheader>
<item>
<term>
<para>Default ("G") format</para>
</term>
<description>
<para>Default (current) culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString" />
</para>
</description>
</item>
<item>
<term>
<para>A specific format</para>
</term>
<description>
<para>Default (current) culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString(System.String)" />
</para>
</description>
</item>
<item>
<term>
<para>A specific format</para>
</term>
<description>
<para>A specific culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString(System.String,System.IFormatProvider)" />
</para>
</description>
</item>
</list>
<para>
</para>
<para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para>
<list type="bullet">
<item>
<para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para>
</item>
<item>
<para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para>
</item>
</list>
<para>The <paramref name="provider" /> parameter is an <see cref="T:System.IFormatProvider" /> implementation whose <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method returns a <see cref="T:System.Globalization.NumberFormatInfo" /> object. Typically, <paramref name="provider" /> is a <see cref="T:System.Globalization.NumberFormatInfo" /> object or a <see cref="T:System.Globalization.CultureInfo" /> object. The <paramref name="provider" /> parameter supplies culture-specific information used in formatting. If <paramref name="provider" /> is null, the thread current culture is used.</para>
<para>To convert a <see cref="T:System.Decimal" /> value to its string representation using a specified culture and a specific format string, call the <see cref="M:System.Decimal.ToString(System.String,System.IFormatProvider)" /> method. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The string representation of the value of this instance as specified by <paramref name="provider" />.</para>
</returns>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />An object that supplies culture-specific formatting information. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public hidebysig instance string ToString(string format)" />
<MemberSignature Language="C#" Value="public string ToString (string format);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance string ToString(string format) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="format" Type="System.String" />
</Parameters>
<Docs>
<exception cref="T:System.FormatException">
<paramref name="format" /> is invalid.</exception>
<example>
<para>The following example shows the effects of various
formats on the string returned by <see cref="M:System.Decimal.ToString" />.</para>
<code lang="C#">using System;
class test {
public static void Main() {
decimal d = 1234.56789m;
Console.WriteLine(d);
string[] fmts = {"C","E","F","G","N","P"};
for (int i=0;i<fmts.Length;i++)
Console.WriteLine("{0}: {1}",
fmts[i],d.ToString(fmts[i]));
}
}
</code>
<para>The output is</para>
<c>
<para>1234.56789</para>
<para>C: $1,234.57</para>
<para>E: 1.234568E+003</para>
<para>F: 1234.57</para>
<para>G: 1234.56789</para>
<para>N: 1,234.57</para>
<para>P: 123,456.79 %</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Decimal.ToString(System.String)" /> method formats a <see cref="T:System.Decimal" /> value in a specified format by using the conventions of the current culture. If you want to use the default ("G", or general) format or specify a different culture, use the other overloads of the <see cref="M:System.Decimal.ToString(System.String)" /> method, as follows:</para>
<list type="table">
<listheader>
<item>
<term>
<para>To use format</para>
</term>
<description>
<para>For culture</para>
</description>
<description>
<para>Use the overload</para>
</description>
</item>
</listheader>
<item>
<term>
<para>Default ("G") format</para>
</term>
<description>
<para>Default (current) culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString" />
</para>
</description>
</item>
<item>
<term>
<para>Default ("G") format</para>
</term>
<description>
<para>A specific culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString(System.IFormatProvider)" />
</para>
</description>
</item>
<item>
<term>
<para>A specific format</para>
</term>
<description>
<para>A specific culture</para>
</description>
<description>
<para>
<see cref="M:System.Decimal.ToString(System.String,System.IFormatProvider)" />
</para>
</description>
</item>
</list>
<para>
</para>
<para>The <see cref="M:System.Decimal.ToString(System.String)" /> method uses the standard or custom numeric format string specified by the <paramref name="format" /> parameter to convert the value of the current instance into its string representation. The <paramref name="format" /> parameter can be any valid <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">standard numeric format specifier</a></format> except for D, R, and X, as well as any combination of <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">custom numeric format specifiers</a></format>. If <paramref name="format" /> is null or an empty string, the return value of this instance is formatted with the general numeric format specifier (G).</para>
<para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para>
<list type="bullet">
<item>
<para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para>
</item>
<item>
<para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para>
</item>
</list>
<para>The return value is formatted by using the <see cref="T:System.Globalization.NumberFormatInfo" /> object for the current culture. To apply the formatting conventions of a specified culture, call the <see cref="M:System.Decimal.ToString(System.String,System.IFormatProvider)" /> method. </para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the numeric value of this instance to its equivalent string representation, using the specified format.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The string representation of the value of this instance as specified by <paramref name="format" />.</para>
</returns>
<param name="format">
<attribution license="cc4" from="Microsoft" modified="false" />A standard or custom numeric format string (see Remarks).</param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="ILASM" Value=".method public final hidebysig virtual string ToString(string format, class System.IFormatProvider provider)" />
<MemberSignature Language="C#" Value="public string ToString (string format, IFormatProvider provider);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance string ToString(string format, class System.IFormatProvider provider) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="format" Type="System.String" />
<Parameter Name="provider" Type="System.IFormatProvider" />
</Parameters>
<Docs>
<exception cref="T:System.FormatException">
<paramref name="format" /> is invalid.</exception>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The <see cref="M:System.Double.ToString(System.String,System.IFormatProvider)" /> method formats a <see cref="T:System.Double" /> value in a specified format of a specified culture. If you want to use default format or culture settings, use the other overloads of the <see cref="M:System.Double.ToString(System.String)" /> method, as follows:</para>
<list type="table">
<listheader>
<item>
<term>
<para>To use format</para>
</term>
<description>
<para>For culture</para>
</description>
<description>
<para>Use the overload</para>
</description>
</item>
</listheader>
<item>
<term>
<para>Default ("G") format</para>
</term>
<description>
<para>Default (current) culture</para>
</description>
<description>
<para>
<see cref="M:System.Double.ToString" />
</para>
</description>
</item>
<item>
<term>
<para>Default ("G") format</para>
</term>
<description>
<para>A specific culture</para>
</description>
<description>
<para>
<see cref="M:System.Double.ToString(System.IFormatProvider)" />
</para>
</description>
</item>
<item>
<term>
<para>A specific format</para>
</term>
<description>
<para>Default (current) culture</para>
</description>
<description>
<para>
<see cref="M:System.Double.ToString(System.String)" />
</para>
</description>
</item>
</list>
<para>The <paramref name="format" /> parameter can be any valid standard numeric format specifier except for D, R, and X, as well as any combination of custom numeric format specifiers. If <paramref name="format" /> is null or an empty string, the return value for this instance is formatted with the general numeric format specifier ("G").</para>
<para>The .NET Framework provides extensive formatting support, which is described in greater detail in the following formatting topics:</para>
<list type="bullet">
<item>
<para>For more information about numeric format specifiers, see <format type="text/html"><a href="580e57eb-ac47-4ffd-bccd-3a1637c2f467">Standard Numeric Format Strings</a></format> and <format type="text/html"><a href="6f74fd32-6c6b-48ed-8241-3c2b86dea5f4">Custom Numeric Format Strings</a></format>. </para>
</item>
<item>
<para>For more information about formatting, see <format type="text/html"><a href="0d1364da-5b30-4d42-8e6b-03378343343f">Formatting Types</a></format>. </para>
</item>
</list>
<para>The <paramref name="provider" /> parameter is an <see cref="T:System.IFormatProvider" /> implementation whose <see cref="M:System.IFormatProvider.GetFormat(System.Type)" /> method returns a <see cref="T:System.Globalization.NumberFormatInfo" /> object. Typically, <paramref name="provider" /> is a <see cref="T:System.Globalization.NumberFormatInfo" /> or <see cref="T:System.Globalization.CultureInfo" /> object. The <paramref name="provider" /> parameter supplies culture-specific information used in formatting. If <paramref name="provider" /> is null, the thread current culture is used.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The string representation of the value of this instance as specified by <paramref name="format" /> and <paramref name="provider" />.</para>
</returns>
<param name="format">
<attribution license="cc4" from="Microsoft" modified="false" />A numeric format string (see Remarks).</param>
<param name="provider">
<attribution license="cc4" from="Microsoft" modified="false" />An object that supplies culture-specific formatting information. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="ToUInt16">
<MemberSignature Language="C#" Value="public static ushort ToUInt16 (decimal value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int16 ToUInt16(valuetype System.Decimal value) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt16</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="value" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The return value is the integral part of the decimal value; fractional digits are truncated.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 16-bit unsigned integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 16-bit unsigned integer equivalent to the value of <paramref name="value" />.</para>
</returns>
<param name="value">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToUInt32">
<MemberSignature Language="C#" Value="public static uint ToUInt32 (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int32 ToUInt32(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt32</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The return value is the integral part of the decimal value; fractional digits are truncated.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 32-bit unsigned integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 32-bit unsigned integer equivalent to the value of <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="ToUInt64">
<MemberSignature Language="C#" Value="public static ulong ToUInt64 (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig unsigned int64 ToUInt64(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>System.CLSCompliant(false)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.UInt64</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The return value is the integral part of the decimal value; fractional digits are truncated.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Converts the value of the specified <see cref="T:System.Decimal" /> to the equivalent 64-bit unsigned integer.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>A 64-bit unsigned integer equivalent to the value of <paramref name="d" />.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to convert. </param>
</Docs>
</Member>
<Member MemberName="Truncate">
<MemberSignature Language="ILASM" Value=".method public hidebysig static decimal Truncate(decimal d)" />
<MemberSignature Language="C#" Value="public static decimal Truncate (decimal d);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Decimal Truncate(valuetype System.Decimal d) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="d" Type="System.Decimal" />
</Parameters>
<Docs>
<example>
<para>The following example demonstrates using the <see cref="M:System.Decimal.Truncate(System.Decimal)" /> method.</para>
<code lang="C#">using System;
class MyClass {
public static void Main() {
decimal d1 = 1234.56789m;
decimal d2 = -1234.56789m;
Console.WriteLine("{0} truncated is {1}", d1, Decimal.Truncate(d1));
Console.WriteLine("{0} truncated is {1}", d2, Decimal.Truncate(d2));
}
}
</code>
<para>The output is</para>
<c>
<para>1234.56789 truncated is 1234</para>
<para>-1234.56789 truncated is -1234</para>
</c>
</example>
<remarks>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>This method rounds <paramref name="d" /> toward zero, to the nearest whole number, which corresponds to discarding any digits after the decimal point.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Returns the integral digits of the specified <see cref="T:System.Decimal" />; any fractional digits are discarded.</para>
</summary>
<returns>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>The result of <paramref name="d" /> rounded toward zero, to the nearest whole number.</para>
</returns>
<param name="d">
<attribution license="cc4" from="Microsoft" modified="false" />The decimal number to truncate. </param>
</Docs>
<Excluded>0</Excluded>
</Member>
<Member MemberName="TryParse">
<MemberSignature Language="C#" Value="public static bool TryParse (string s, out decimal result);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool TryParse(string s, valuetype System.Decimal result) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="result" Type="System.Decimal&" RefType="out" />
</Parameters>
<Docs>
<param name="s">To be added.</param>
<param name="result">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<since version=".NET 2.0" />
</Docs>
</Member>
<Member MemberName="TryParse">
<MemberSignature Language="C#" Value="public static bool TryParse (string s, System.Globalization.NumberStyles style, IFormatProvider provider, out decimal result);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig bool TryParse(string s, valuetype System.Globalization.NumberStyles style, class System.IFormatProvider provider, valuetype System.Decimal result) cil managed" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="style" Type="System.Globalization.NumberStyles" />
<Parameter Name="provider" Type="System.IFormatProvider" />
<Parameter Name="result" Type="System.Decimal&" RefType="out" />
</Parameters>
<Docs>
<param name="s">To be added.</param>
<param name="style">To be added.</param>
<param name="provider">To be added.</param>
<param name="result">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
<since version=".NET 2.0" />
</Docs>
</Member>
<Member MemberName="Zero">
<MemberSignature Language="ILASM" Value=".field public static initOnly decimal Zero" />
<MemberSignature Language="C#" Value="public static readonly decimal Zero;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Decimal Zero" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Decimal</ReturnType>
</ReturnValue>
<Parameters />
<MemberValue>0</MemberValue>
<Docs>
<remarks>
<para>The value of this constant is 0. The scale shall be 0.</para>
<para>This field is read-only.</para>
</remarks>
<summary>
<attribution license="cc4" from="Microsoft" modified="false" />
<para>Represents the number zero (0).</para>
</summary>
</Docs>
<Excluded>0</Excluded>
</Member>
</Members>
<TypeExcluded>0</TypeExcluded>
</Type>
|