Skip to content

Instantly share code, notes, and snippets.

View Blizzardo1's full-sized avatar
😬
Have you tried turning it off and on again?

Adonis Deliannis Blizzardo1

😬
Have you tried turning it off and on again?
View GitHub Profile
using System;
class Program
{
static void Main()
{
var b = new Base();
b.DoSomething();
// The answer is 42!
@nberardi
nberardi / BigDecimal.cs
Created May 12, 2012 15:17
BigDecimal type in .NET
using System;
using System.Linq;
namespace System.Numerics
{
public struct BigDecimal : IConvertible, IFormattable, IComparable, IComparable<BigDecimal>, IEquatable<BigDecimal>
{
public static readonly BigDecimal MinusOne = new BigDecimal(BigInteger.MinusOne, 0);
public static readonly BigDecimal Zero = new BigDecimal(BigInteger.Zero, 0);
public static readonly BigDecimal One = new BigDecimal(BigInteger.One, 0);