1

I want a class for representing and manipulating a 128-bit decimal data type, a quadruple-precision floating point. I found double.js, but it supports only 106 accurate bits (double-double). I'm looking for something like .NET's Decimal data type or something following Wikipedia.

I also need the class to have a method that returns its composing bytes, like toBytes(), which returns an array of bytes (16 bytes). Also tell me in which endianness they're returned.

1 Answer 1

-1

You can try Syncfusion Numeric TextBox component https://www.syncfusion.com/javascript-ui-controls/js-numeric-textbox

Demo: https://ej2.syncfusion.com/demos/#/bootstrap5/numerictextbox/default.htm

Syncfusion offers a free community license also. https://www.syncfusion.com/products/communitylicense

Note: I work for Syncfusion

1
  • Interesting, but my purpose was to build a compiler, not user interface.
    – Hydroper
    Aug 17, 2022 at 14:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.