Floating point print Incompatibility SWI 5.10.2 versus 6.6.2
Jeff <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
I have been using the older 5.10.2 for years (on my Intel Mac) and have just tried 6.6.2 (on a remote Linux system). In 5.10.2: ?- A is 2.1, write(A). 2.1 A = 2.1. ?- A is 2.1 + 3.2, write(A). 5.3 A = 5.3. In 6.6.2: ?- A is 2.1, write(A). 2.1 A = 2.100000000. ?- A is 2.1 + 3.2, write(A). 5.300000000000001 A = 5.300000000. I have set flags so that BOTH versions have current_prolog_flag(float_format, %g’). and current_prolog_flag(write_attributes, ignore). How can I get 6.6.2 to behave the way 5.10.2 did??? -- View this message in context: http://swi-prolog.996271.n3.nabble.com/Floating-point-print-Incompatibility-SWI-5-10-2-versus-6-6-2-tp14545.html Sent from the SWI Prolog mailing list archive at Nabble.com. _______________________________________________ SWI-Prolog mailing list [email protected] https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog