> Ulrich Neumerkel wrote:
> >
> >> Where do these integers come from? Why aren't they floats then in the
> >> first place?
> >
> >
>
> My program classifies objects (e.g. words). The classification procedure
> involves assigning scores. Basically, scores are frequencies, i.e. integers.
> Some frequencies, but not all, must be normalized. The normalization
> procedure implicitly creates floats.
It's not clear how normalized and non-normalized "frequencies" end up
in the same collection, but, if they do, it really sounds like they
should all be represented as floats. As pointed out by others, watch
out for integers with no exact SWI float representation, but on the
plus side, it doesn't sound like you have NaN, Inf, -0, or any
negative numbers at all for that matter, so at least the floats will
be easy to compare.
Jeff Schultz
_______________________________________________
SWI-Prolog mailing list
SWI-Prolog@...
https://mailbox.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog