You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 782 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Est-ce normal que le comportement de %+d differe de celui de %+s dans
les formats de printf ? Le premier affiche le + (incorrect), mais pas
le second...
Fabrice
The text was updated successfully, but these errors were encountered:
Est-ce normal que le comportement de %+d differe de celui de %+s dans
les formats de printf ? Le premier affiche le + (incorrect), mais pas
le second...
Parfaitement normal:
Printf.printf "%+d\n" 123;;
+123
: unit = ()
Printf.printf "%+d\n" (-123);;
-123
: unit = ()
Printf.printf "%+s\n" "hello";;
hello
: unit = ()
man 3 printf:
+ A sign (+ or -) always be placed before a number
produced by a signed conversion. By default a sign
is used only for negative numbers. A + overrides a
space if both are used.
Original bug ID: 782
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Est-ce normal que le comportement de %+d differe de celui de %+s dans
les formats de printf ? Le premier affiche le + (incorrect), mais pas
le second...
The text was updated successfully, but these errors were encountered: