bigfloat

Jarrett Billingsley jarrett.billingsley at gmail.com
Wed Apr 8 13:12:22 PDT 2009


On Wed, Apr 8, 2009 at 3:51 PM, dsimcha <dsimcha at yahoo.com> wrote:
> == Quote from Jarrett Billingsley (jarrett.billingsley at gmail.com)'s article
>> On Wed, Apr 8, 2009 at 3:39 PM, Walter Bright
>> <newshound1 at digitalmars.com> wrote:
>> > Paul D. Anderson wrote:
>> >>
>> >> b) the features and functions that should be included.
>> >
>> > I'd say NaNs and unordered comparisons. In other words, it should support
>> > the same semantics as float, double and real do.
>> opUnorderedCmp?
>
> What's wrong with just returning some sentinel from opCmp?  For example, define
> int.max as the sentinel for when comparing with nans involved, etc.  For opEquals,
> we don't have a problem, just return false.
>

Oh, hm, I wasn't aware that the NCEG operators actually called opCmp.



More information about the Digitalmars-d mailing list