| ︙ | | | ︙ | |
310
311
312
313
314
315
316
317
318
319
320
321
322
323
|
DN_OP1(dn_log10, decNumberLog10)
DN_OP1(dn_abs, decNumberAbs)
DN_OP1(dn_neg, decNumberMinus)
DN_OP1(dn_norm, decNumberNormalize)
DN_OP1(dn_plus, decNumberPlus)
DN_OP1(dn_sqrt, decNumberSquareRoot)
DN_OP1(dn_intval, decNumberToIntegralValue)
#define DN_OP2(name,fun) \
static int name (lua_State *L) \
{ \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
decNumber *dn2 = ldn_get (L, dc, 2); \
|
>
>
>
>
>
|
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
|
DN_OP1(dn_log10, decNumberLog10)
DN_OP1(dn_abs, decNumberAbs)
DN_OP1(dn_neg, decNumberMinus)
DN_OP1(dn_norm, decNumberNormalize)
DN_OP1(dn_plus, decNumberPlus)
DN_OP1(dn_sqrt, decNumberSquareRoot)
DN_OP1(dn_intval, decNumberToIntegralValue)
DN_OP1(dn_invert, decNumberInvert)
DN_OP1(dn_logb, decNumberLogB)
DN_OP1(dn_intxct, decNumberToIntegralExact)
DN_OP1(dn_intnmn, decNumberNextMinus)
DN_OP1(dn_intnpl, decNumberNextPlus)
#define DN_OP2(name,fun) \
static int name (lua_State *L) \
{ \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
decNumber *dn2 = ldn_get (L, dc, 2); \
|
| ︙ | | | ︙ | |
337
338
339
340
341
342
343
344
345
346
347
348
349
350
|
DN_OP2(dn_divideinteger, decNumberDivideInteger)
DN_OP2(dn_max, decNumberMax)
DN_OP2(dn_min, decNumberMin)
DN_OP2(dn_quantize, decNumberQuantize)
DN_OP2(dn_remainder, decNumberRemainder)
DN_OP2(dn_remaindernear, decNumberRemainderNear)
DN_OP2(dn_rescale, decNumberRescale)
/* mod -- needs to be fudged from remainder */
static int dn_mod (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
|
DN_OP2(dn_divideinteger, decNumberDivideInteger)
DN_OP2(dn_max, decNumberMax)
DN_OP2(dn_min, decNumberMin)
DN_OP2(dn_quantize, decNumberQuantize)
DN_OP2(dn_remainder, decNumberRemainder)
DN_OP2(dn_remaindernear, decNumberRemainderNear)
DN_OP2(dn_rescale, decNumberRescale)
DN_OP2(dn_and, decNumberAnd)
DN_OP2(dn_comparetotalmag, decNumberCompareTotalMag)
DN_OP2(dn_maxmag, decNumberMaxMag)
DN_OP2(dn_minmag, decNumberMinMag)
DN_OP2(dn_nexttoward, decNumberNextToward)
DN_OP2(dn_or, decNumberOr)
DN_OP2(dn_rotate, decNumberRotate)
DN_OP2(dn_scaleb, decNumberScaleB)
DN_OP2(dn_shift, decNumberShift)
DN_OP2(dn_xor, decNumberXor)
static int dn_fma (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
decNumber *dn2 = ldn_get (L, dc, 2);
decNumber *dn3 = ldn_get (L, dc, 3);
decNumber *dnr = ldn_make_decNumber (L);
decNumberFMA (dnr, dn1, dn2, dn3, dc);
return 1;
}
/* mod -- needs to be fudged from remainder */
static int dn_mod (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
|
| ︙ | | | ︙ | |
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
|
// subtract one from result
decNumberSubtract (dnr, dnr, &dnc_one, dc);
}
}
return 1;
}
/* samequantum -- call needs no context */
static int dn_samequantum (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
decNumber *dn2 = ldn_get (L, dc, 2);
decNumber *dnr = ldn_make_decNumber (L);
decNumberSameQuantum(dnr, dn1, dn2);
return 1;
}
/* trim -- needs decNumberCopy */
static int dn_trim (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
decNumber *dnr = ldn_make_decNumber (L);
decNumberCopy (dnr, dn1);
decNumberTrim (dnr);
return 1;
}
/* predicates */
#define DN_P1(name,pmac) \
static int name (lua_State *L) \
{ \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
lua_pushboolean (L, pmac(dn1)); \
return 1; \
}
DN_P1(dn_iszero, decNumberIsZero)
DN_P1(dn_isneg, decNumberIsNegative)
DN_P1(dn_isnan, decNumberIsNaN)
DN_P1(dn_isqnan, decNumberIsQNaN)
DN_P1(dn_issnan, decNumberIsSNaN)
DN_P1(dn_isinf, decNumberIsInfinite)
#define DN_PR2(name,fun,pmac) \
static int name (lua_State *L) \
{ \
decNumber dnr; \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
decNumber *dn2 = ldn_get (L, dc, 2); \
fun(&dnr, dn1, dn2, dc); \
lua_pushboolean (L, pmac(&dnr)); \
return 1; \
}
#define decNumberIsNegativeOrZero(d) (decNumberIsNegative(d) || decNumberIsZero(d))
DN_PR2(dn_eq,decNumberCompare,decNumberIsZero)
DN_PR2(dn_lt,decNumberCompare,decNumberIsNegative)
DN_PR2(dn_le,decNumberCompare,decNumberIsNegativeOrZero)
/* to string */
static int ldn_string (lua_State *L, int x, char *(*sf)(const decNumber *, char *))
{
char buf[128];
decContext *dc = ldn_get_context (L);
|
<
<
<
<
<
<
<
<
<
<
<
<
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
|
// subtract one from result
decNumberSubtract (dnr, dnr, &dnc_one, dc);
}
}
return 1;
}
/* trim -- needs decNumberCopy */
static int dn_trim (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
decNumber *dnr = ldn_make_decNumber (L);
decNumberCopy (dnr, dn1);
decNumberTrim (dnr);
return 1;
}
#define DN_OP1nc(name,fun) \
static int name (lua_State *L) \
{ \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
decNumber *dnr = ldn_make_decNumber (L); \
fun(dnr, dn1); \
return 1; \
}
DN_OP1nc(dn_copy, decNumberCopy)
DN_OP1nc(dn_copyabs, decNumberCopyAbs)
DN_OP1nc(dn_copynegate, decNumberCopyNegate)
#define DN_OP2nc(name,fun) \
static int name (lua_State *L) \
{ \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
decNumber *dn2 = ldn_get (L, dc, 2); \
decNumber *dnr = ldn_make_decNumber (L); \
fun(dnr, dn1, dn2); \
return 1; \
}
DN_OP2nc(dn_samequantum, decNumberSameQuantum)
DN_OP2nc(dn_copysign, decNumberCopySign)
/* predicates */
#define DN_P1(name,pmac) \
static int name (lua_State *L) \
{ \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
dn1 = dn1; \
lua_pushboolean (L, pmac(dn1)); \
return 1; \
}
DN_P1(dn_iszero, decNumberIsZero)
DN_P1(dn_isneg, decNumberIsNegative)
DN_P1(dn_isnan, decNumberIsNaN)
DN_P1(dn_isqnan, decNumberIsQNaN)
DN_P1(dn_issnan, decNumberIsSNaN)
DN_P1(dn_isinf, decNumberIsInfinite)
DN_P1(dn_iscncl, decNumberIsCanonical)
DN_P1(dn_isfini, decNumberIsFinite)
DN_P1(dn_isspec, decNumberIsSpecial)
#define DN_P1c(name,pmac) \
static int name (lua_State *L) \
{ \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
lua_pushboolean (L, pmac(dn1,dc)); \
return 1; \
}
DN_P1c(dn_isnorm, decNumberIsNormal)
DN_P1c(dn_issubn, decNumberIsSubnormal)
#define DN_PR2(name,fun,pmac) \
static int name (lua_State *L) \
{ \
decNumber dnr; \
decContext *dc = ldn_get_context (L); \
decNumber *dn1 = ldn_get (L, dc, 1); \
decNumber *dn2 = ldn_get (L, dc, 2); \
fun(&dnr, dn1, dn2, dc); \
lua_pushboolean (L, pmac(&dnr)); \
return 1; \
}
#define decNumberIsNegativeOrZero(d) (decNumberIsNegative(d) || decNumberIsZero(d))
DN_PR2(dn_eq,decNumberCompare,decNumberIsZero)
DN_PR2(dn_lt,decNumberCompare,decNumberIsNegative)
DN_PR2(dn_le,decNumberCompare,decNumberIsNegativeOrZero)
/* classifiers */
static int dn_radix (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
int r = decNumberRadix(dn1);
dn1 = dn1;
lua_pushinteger (L, r);
return 1;
}
static int dn_class (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
int decClass = decNumberClass(dn1,dc);
lua_pushinteger (L, decClass);
return 1;
}
static int dn_classtostring (lua_State *L)
{
//decContext *dc = ldn_get_context (L);
int decClass = luaL_checkint (L,1);
const char * s = decNumberClassToString(decClass);
lua_pushstring (L, s);
return 1;
}
static int dn_classasstring (lua_State *L)
{
decContext *dc = ldn_get_context (L);
decNumber *dn1 = ldn_get (L, dc, 1);
int decClass = decNumberClass(dn1,dc);
const char * s = decNumberClassToString(decClass);
lua_pushstring (L, s);
return 1;
}
/* to string */
static int ldn_string (lua_State *L, int x, char *(*sf)(const decNumber *, char *))
{
char buf[128];
decContext *dc = ldn_get_context (L);
|
| ︙ | | | ︙ | |
747
748
749
750
751
752
753
754
755
756
757
758
759
760
|
DEC_(ROUND_CEILING) /* round towards +infinity */
DEC_(ROUND_UP) /* round away from 0 */
DEC_(ROUND_HALF_UP) /* 0.5 rounds up */
DEC_(ROUND_HALF_EVEN) /* 0.5 rounds to nearest even */
DEC_(ROUND_HALF_DOWN) /* 0.5 rounds down */
DEC_(ROUND_DOWN) /* round towards 0 (truncate) */
DEC_(ROUND_FLOOR) /* round towards -infinity */
/* Trap-enabler and Status flags */
DEC_(Conversion_syntax)
DEC_(Division_by_zero)
DEC_(Division_impossible)
DEC_(Division_undefined)
DEC_(Insufficient_storage)
DEC_(Inexact)
|
>
|
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
|
DEC_(ROUND_CEILING) /* round towards +infinity */
DEC_(ROUND_UP) /* round away from 0 */
DEC_(ROUND_HALF_UP) /* 0.5 rounds up */
DEC_(ROUND_HALF_EVEN) /* 0.5 rounds to nearest even */
DEC_(ROUND_HALF_DOWN) /* 0.5 rounds down */
DEC_(ROUND_DOWN) /* round towards 0 (truncate) */
DEC_(ROUND_FLOOR) /* round towards -infinity */
DEC_(ROUND_05UP) /* round for reround */
/* Trap-enabler and Status flags */
DEC_(Conversion_syntax)
DEC_(Division_by_zero)
DEC_(Division_impossible)
DEC_(Division_undefined)
DEC_(Insufficient_storage)
DEC_(Inexact)
|
| ︙ | | | ︙ | |
778
779
780
781
782
783
784
785
786
787
788
789
790
791
|
DEC_(NaNs) /* flags which cause a result to become qNaN */
DEC_(Information) /* flags which are normally for information only (have finite results) */
/* Initialization descriptors, used by decContextDefault */
DEC_(INIT_BASE)
DEC_(INIT_DECIMAL32)
DEC_(INIT_DECIMAL64)
DEC_(INIT_DECIMAL128)
/* compile time config */
{"MAX_DIGITS", DECNUMDIGITS },
/* terminator */
{ NULL, 0 }
};
#if LDN_ENABLE_RANDOM
|
>
>
>
>
>
>
>
>
>
>
>
>
|
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
|
DEC_(NaNs) /* flags which cause a result to become qNaN */
DEC_(Information) /* flags which are normally for information only (have finite results) */
/* Initialization descriptors, used by decContextDefault */
DEC_(INIT_BASE)
DEC_(INIT_DECIMAL32)
DEC_(INIT_DECIMAL64)
DEC_(INIT_DECIMAL128)
/* Classifications for decNumbers, aligned with 754r (note that */
/* 'normal' and 'subnormal' are meaningful only with a decContext) */
DEC_(CLASS_SNAN)
DEC_(CLASS_QNAN)
DEC_(CLASS_NEG_INF)
DEC_(CLASS_NEG_NORMAL)
DEC_(CLASS_NEG_SUBNORMAL)
DEC_(CLASS_NEG_ZERO)
DEC_(CLASS_POS_ZERO)
DEC_(CLASS_POS_SUBNORMAL)
DEC_(CLASS_POS_NORMAL)
DEC_(CLASS_POS_INF)
/* compile time config */
{"MAX_DIGITS", DECNUMDIGITS },
/* terminator */
{ NULL, 0 }
};
#if LDN_ENABLE_RANDOM
|
| ︙ | | | ︙ | |
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
|
{"log10", dn_log10 },
{"abs", dn_abs },
{"minus", dn_neg },
{"normalize", dn_norm },
{"plus", dn_plus },
{"squareroot", dn_sqrt },
{"tointegralvalue", dn_intval },
{"add", dn_add },
{"divide", dn_div },
{"multiply", dn_mul },
{"power", dn_pow },
{"subtract", dn_sub },
{"compare", dn_compare },
{"comparetotal", dn_comparetotal },
{"divideinteger", dn_divideinteger },
{"max", dn_max },
{"min", dn_min },
{"quantize", dn_quantize },
{"remainder", dn_remainder },
{"remaindernear", dn_remaindernear },
{"rescale", dn_rescale },
{"samequantum", dn_samequantum },
{"mod", dn_mod },
{"floor", dn_floor },
{"iszero", dn_iszero },
{"isnegative", dn_isneg },
{"isnan", dn_isnan },
{"isqnan", dn_isqnan },
{"issnan", dn_issnan },
{"isinfinite", dn_isinf },
{"trim", dn_trim },
{"tostring", dn_string },
{"toengstring", dn_engstring },
{ "__unm", dn_neg },
{ "__add", dn_add },
|
>
>
>
>
>
>
>
>
>
>
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
>
>
>
>
>
|
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
|
{"log10", dn_log10 },
{"abs", dn_abs },
{"minus", dn_neg },
{"normalize", dn_norm },
{"plus", dn_plus },
{"squareroot", dn_sqrt },
{"tointegralvalue", dn_intval },
{"invert", dn_invert },
{"logb", dn_logb },
{"tointegralexact", dn_intxct },
{"nextminus", dn_intnmn },
{"nextplus", dn_intnpl },
{"copy", dn_copy },
{"copyabs", dn_copyabs },
{"copynegate", dn_copynegate },
{"copysign", dn_copysign },
{"add", dn_add },
{"divide", dn_div },
{"multiply", dn_mul },
{"power", dn_pow },
{"subtract", dn_sub },
{"compare", dn_compare },
{"comparetotal", dn_comparetotal },
{"divideinteger", dn_divideinteger },
{"max", dn_max },
{"min", dn_min },
{"quantize", dn_quantize },
{"remainder", dn_remainder },
{"remaindernear", dn_remaindernear },
{"rescale", dn_rescale },
{"samequantum", dn_samequantum },
{"land", dn_and },
{"comparetotalmag", dn_comparetotalmag },
{"maxmag", dn_maxmag },
{"minmag", dn_minmag },
{"nexttoward", dn_nexttoward },
{"lor", dn_or },
{"rotate", dn_rotate },
{"scaleb", dn_scaleb },
{"shift", dn_shift },
{"xor", dn_xor },
{"fma", dn_fma },
{"mod", dn_mod },
{"floor", dn_floor },
{"iszero", dn_iszero },
{"isnegative", dn_isneg },
{"isnan", dn_isnan },
{"isqnan", dn_isqnan },
{"issnan", dn_issnan },
{"isinfinite", dn_isinf },
{"isfinite", dn_isfini },
{"iscanonical", dn_iscncl },
{"isspecial", dn_isspec },
{"isnormal", dn_isnorm },
{"issubnormal", dn_issubn },
{"radix", dn_radix },
{"class", dn_class },
{"classtostring", dn_classtostring },
{"classasstring", dn_classasstring },
{"trim", dn_trim },
{"tostring", dn_string },
{"toengstring", dn_engstring },
{ "__unm", dn_neg },
{ "__add", dn_add },
|
| ︙ | | | ︙ | |
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
|
{"log10", dn_log10 },
{"abs", dn_abs },
{"minus", dn_neg },
{"normalize", dn_norm },
{"plus", dn_plus },
{"squareroot", dn_sqrt },
{"tointegralvalue", dn_intval },
{"add", dn_add },
{"divide", dn_div },
{"multiply", dn_mul },
{"power", dn_pow },
{"subtract", dn_sub },
{"compare", dn_compare },
{"comparetotal", dn_comparetotal },
{"divideinteger", dn_divideinteger },
{"max", dn_max },
{"min", dn_min },
{"quantize", dn_quantize },
{"remainder", dn_remainder },
{"remaindernear", dn_remaindernear },
{"rescale", dn_rescale },
{"samequantum", dn_samequantum },
{"mod", dn_mod },
{"floor", dn_floor },
{"iszero", dn_iszero },
{"isnegative", dn_isneg },
{"isnan", dn_isnan },
{"isqnan", dn_isqnan },
{"issnan", dn_issnan },
{"isinfinite", dn_isinf },
{"trim", dn_trim },
{"getcontext", dn_get_context },
{"setcontext", dn_set_context },
{"tonumber", dn_todecnumber },
{"tostring", dn_string },
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
|
{"log10", dn_log10 },
{"abs", dn_abs },
{"minus", dn_neg },
{"normalize", dn_norm },
{"plus", dn_plus },
{"squareroot", dn_sqrt },
{"tointegralvalue", dn_intval },
{"invert", dn_invert },
{"logb", dn_logb },
{"tointegralexact", dn_intxct },
{"nextminus", dn_intnmn },
{"nextplus", dn_intnpl },
{"copy", dn_copy },
{"copyabs", dn_copyabs },
{"copynegate", dn_copynegate },
{"copysign", dn_copysign },
{"add", dn_add },
{"divide", dn_div },
{"multiply", dn_mul },
{"power", dn_pow },
{"subtract", dn_sub },
{"compare", dn_compare },
{"comparetotal", dn_comparetotal },
{"divideinteger", dn_divideinteger },
{"max", dn_max },
{"min", dn_min },
{"quantize", dn_quantize },
{"remainder", dn_remainder },
{"remaindernear", dn_remaindernear },
{"rescale", dn_rescale },
{"samequantum", dn_samequantum },
{"land", dn_and },
{"comparetotalmag", dn_comparetotalmag },
{"maxmag", dn_maxmag },
{"minmag", dn_minmag },
{"nexttoward", dn_nexttoward },
{"lor", dn_or },
{"rotate", dn_rotate },
{"scaleb", dn_scaleb },
{"shift", dn_shift },
{"xor", dn_xor },
{"fma", dn_fma },
{"mod", dn_mod },
{"floor", dn_floor },
{"iszero", dn_iszero },
{"isnegative", dn_isneg },
{"isnan", dn_isnan },
{"isqnan", dn_isqnan },
{"issnan", dn_issnan },
{"isinfinite", dn_isinf },
{"isfinite", dn_isfini },
{"iscanonical", dn_iscncl },
{"isspecial", dn_isspec },
{"isnormal", dn_isnorm },
{"issubnormal", dn_issubn },
{"radix", dn_radix },
{"class", dn_class },
{"classtostring", dn_classtostring },
{"classasstring", dn_classasstring },
{"trim", dn_trim },
{"getcontext", dn_get_context },
{"setcontext", dn_set_context },
{"tonumber", dn_todecnumber },
{"tostring", dn_string },
|
| ︙ | | | ︙ | |