Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

affichage des valeurs infinity et neg_infinity #2724

Closed
vicuna opened this Issue Mar 22, 2001 · 2 comments

Comments

Projects
None yet
1 participant
@vicuna
Copy link
Collaborator

vicuna commented Mar 22, 2001

Original bug ID: 320
Reporter: administrator
Status: closed (set by @damiendoligez on 2008-01-22T12:41:32Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: <=3.07
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Jean-Christophe Filliatre
Version: ocaml 3.01
OS: Linux
Submission from: pc803.lri.fr (129.175.8.114)

Il s'agit d'un mini bug : les valeurs infinity et neg_infinity sont affichées
(dans le toplevel) comme "inf" et "-inf" respectivement, au lieu de
"infinity" et "neg_infinity" respectivement.

1. /. 0.;;

  • : float = inf

-1. /. 0.;;

  • : float = -inf

Merci (je ne suis bien sûr pas pressé que ce soit corrigé, c'est totalement
mineur)

--JCF

@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Mar 30, 2001

Comment author: administrator

Salut Jean-Christophe,

Il s'agit d'un mini bug : les valeurs infinity et neg_infinity sont affichées
(dans le toplevel) comme "inf" et "-inf" respectivement, au lieu de
"infinity" et "neg_infinity" respectivement.

Oui, c'est actuellement le printf() de la lib C qui decide de cet affichage.
Je suis d'accord que l'affichage des flottants au toplevel pourrait
etre ameliore de maniere a ce que ce qui s'affiche soit parsable par OCaml.
(C'est loin d'etre le cas, p.ex. 1.0 est affiche "1"...)

Amicalement,

  • Xavier
@vicuna

This comment has been minimized.

Copy link
Collaborator Author

vicuna commented Mar 30, 2001

Comment author: administrator

Printing of floats at top-level could be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.