You can enter extension methods for int:
750.Thousand();
5.Million();
100.Billion();
The implementation of these methods is simple:
public static int Thousand(this int value)
{
return value * 1000;
}
public static int Million(this int value)
{
return value.Thousand() * 1000;
}
:
public static long Billion(this int value)
{
return value.Million() * 1000;
}
, , .
, :
100.Billion() + 30.Thousand() + 300
, , :
100.Billion(30.Thousand(300))
, , , .
, :
public static long Billion(this int value, long add)
{
return value.Million() * 1000 + add;
}
: . . .