|
Boost Users : |
From: Emilio Paolini (paolini.emilio5_at_[hidden])
Date: 2021-04-13 07:18:22
This is pretty good. But i'm looking for a more customazible fixed point
type. What i would like is to define the total number of bits and also make
it saturate when overflow happens! Thank you.
Il giorno mar 13 apr 2021 alle ore 06:21 Raymond Burkholder via Boost-users
<boost-users_at_[hidden]> ha scritto:
> On 4/12/21 1:49 AM, Emilio Paolini via Boost-users wrote:
>
> > Hi everyone, i'm new to Boost. I would like to know if there is a way,
> > using this library, to declare a fixed point type, specifying the number
> > of bits for the fractional part and the behaviour when overflow happens.
>
> Try https://github.com/vpiotr/decimal_for_cpp
>
> It may get you most of the way there.
>
> Raymond
> https://blog.raymond.burkholder.net
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net