On Monday, 8 January 2018 at 22:16:25 UTC, rumbu wrote:
- all std.math functions implemented (even logarithms and trigonometry);


nosine.d
```
import std.stdio;
// import std.math;
import decimal;

void nosine (T) ()
{
   T d = T(1.1);
   writeln (sin(d));
}

void main ()
{
   nosine!decimal32;
   nosine!decimal64;
   nosine!decimal128;
}
```

$ dmd nosine.d decimal.git/libdecimal.a
decimal/package.d(10505): Error: undefined identifier decimalCapAngle decimal/package.d(5364): Error: template instance decimal.decimalSin!(Decimal!32) error instantiating
nosine.d(8):        instantiated from here: sin!(Decimal!32)
nosine.d(13):        instantiated from here: nosine!(Decimal!32)
decimal/package.d(10505): Error: undefined identifier decimalCapAngle decimal/package.d(5364): Error: template instance decimal.decimalSin!(Decimal!64) error instantiating
nosine.d(8):        instantiated from here: sin!(Decimal!64)
nosine.d(14):        instantiated from here: nosine!(Decimal!64)
decimal/package.d(10505): Error: undefined identifier decimalCapAngle decimal/package.d(5364): Error: template instance decimal.decimalSin!(Decimal!128) error instantiating
nosine.d(8):        instantiated from here: sin!(Decimal!128)
nosine.d(15):        instantiated from here: nosine!(Decimal!128)

Reply via email to