From 940b13f012eed2417c93159e2cbaf4f6ddcc4a6c Mon Sep 17 00:00:00 2001 From: Marcus Comstedt <marcus@mc.pp.se> Date: Mon, 25 May 1998 00:41:27 +0200 Subject: [PATCH] Added description for new sprintf formats (%F,%E,%G). Rev: tutorial/tutorial.wmml:1.83 --- tutorial/tutorial.wmml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tutorial/tutorial.wmml b/tutorial/tutorial.wmml index d254925a8a..ee3daa8155 100644 --- a/tutorial/tutorial.wmml +++ b/tutorial/tutorial.wmml @@ -11415,7 +11415,10 @@ generally speaking have one %<modifiers><operator> (examples: <tr valign=top><td> %c </td><td> char (or short with %2c, %3c gives 3 bytes etc.) </td></tr> <tr valign=top><td> %f </td><td> float </td></tr> <tr valign=top><td> %g </td><td> heuristically chosen representation of float </td></tr> +<tr valign=top><td> %G </td><td> like %g, but uses uppercase E for exponent </td></tr> <tr valign=top><td> %e </td><td> exponential notation float </td></tr> +<tr valign=top><td> %E </td><td> like %e, but uses uppercase E for exponent </td></tr> +<tr valign=top><td> %F </td><td> binary IEEE representation of float (%4F gives single precision, %8F gives double precision.) </td></tr> <tr valign=top><td> %s </td><td> string </td></tr> <tr valign=top><td> %O </td><td> any type (debug style) </td></tr> <tr valign=top><td> %n </td><td> nop </td></tr> -- GitLab