Mantis - Cadmium
|
|||||
Erweiterte Problemanzeige | |||||
|
|||||
ID: | Kategorie: | Auswirkung: | Reproduzierbar: | Meldungsdatum: | Letzte Aktualisierung: |
48 | general | kleinerer Fehler | immer | 2009-11-30 11:51 | 2010-02-06 21:12 |
|
|||||
Reporter: | xclerc | Rechnertyp: | |||
Bearbeitung durch: | xclerc | Betriebssystem: | |||
Priorität: | normal | BS-Version: | |||
Status: | erledigt | Produktversion: | 1.3 | ||
Produkt-Build: | Lösung: | erledigt | |||
Projektion: | keine | ||||
Aufwand: | keine | Behoben in Version: | 1.4 | ||
|
|||||
Zusammenfassung: | 0000048: Error in "mod_float" primitive implementation | ||||
Beschreibung: |
The Cadmium runtime does not return the same values than the original one for the "mod_float" primitive. Counterexamples follow: Through "ocamlc"/"ocamlopt": 4.2 modfloat 1.6 = 1 -4.2 modfloat 1.6 = -1 4.2 modfloat -1.6 = 1 -4.2 modfloat -1.6 = -1 Through "ocamljava": 4.2 modfloat 1.6 = -0.6 -4.2 modfloat 1.6 = 0.6 4.2 modfloat -1.6 = -0.6 -4.2 modfloat -1.6 = 0.6 Source file used to generate counterexamples: let tests = [ 4.2, 1.6 ; (-4.2), 1.6 ; 4.2, (-1.6) ; (-4.2), (-1.6) ; ] let () = List.iter (fun (x, y) -> Printf.printf "%g modfloat %g = %g\n" x y (mod_float x y)) tests |
||||
Schritte zur Reproduktion: | |||||
Zusätzliche Information: | |||||
Problem-Beziehungen | |||||
Angehängte Dateien: | |||||
|
|||||
Problem-Historie | |||||
Änderungsdatum | Benutzername | Feld | Änderung | ||
2009-11-30 11:51 | xclerc | Neues Problem | |||
2009-11-30 11:52 | xclerc | Status | neu => zugewiesen | ||
2009-11-30 11:52 | xclerc | Bearbeitung durch | => xclerc | ||
2009-11-30 12:08 | xclerc | Problemnotiz hinzugefügt: 0000197 | |||
2010-02-06 21:12 | xclerc | Status | zugewiesen => erledigt | ||
2010-02-06 21:12 | xclerc | Behoben in Version | => 1.4 | ||
2010-02-06 21:12 | xclerc | Lösung | offen => erledigt |
Notiz | |||||
|
|||||
|
|