[erlang-questions] how: best way to deal with floats in eunit?

Gustavo Niemeyer gustavo@REDACTED
Tue Aug 12 17:18:20 CEST 2008


Hey Tim,

> And similarly, would there be a better way to handle my original
> problem, instead of just unpacking the data structure and using such
> an assertion? I don't usually deal with floats, so I don't know what
> the typical approach would be.

The only alternative I can think of would be having some kind of matching
feature, similar to that available in ets, which was able to perform loose
float comparisons.

-- 
Gustavo Niemeyer
http://niemeyer.net



More information about the erlang-questions mailing list