Esempio n. 1
0
 public Thousands(int value, AbstractPositional prev, Number parent) : base(value, prev)
 {
     if (parent.Value % 1000 != 0)
     {
         OnSeparator = (p) => " and ";
     }
     else
     {
         OnSeparator = (p) => "";
     }
     thousandsNumber = new Number(Value / 1000);
     thousandsNumber.Positionanls.OfType <Hundreds>().ToList().ForEach(d => d.OnSeparator = p => " ");
 }
Esempio n. 2
0
 public Hundreds(int value, AbstractPositional prev, Number parent) : base(value, prev)
 {
     if (Value != 0 && parent.Value % 100 != 0)
     {
         OnSeparator = p => " and ";
     }
     else if (Value == 0 || Value % 100 == 0)
     {
         OnSeparator = p => "";
     }
     number = new Number(Value / 100);
     number.Positionanls.ToList().ForEach(d => d.OnSeparator = p => "");
 }
Esempio n. 3
0
 public Millions(int value, AbstractPositional prev, Number parent) : base(value, prev)
 {
     if (parent.Value % 1_000_000 != 0)
     {
         OnSeparator = (p) => " ";
     }