From aac17888889edae4f4a9658938ea31735ade2635 Mon Sep 17 00:00:00 2001 From: eiffel-org Date: Mon, 30 Apr 2018 12:44:40 +0000 Subject: [PATCH] Update wikipage Getting a STRING from a NUMERIC object. (Signed-off-by:tioui). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2005 abb3cda0-5349-4a8f-a601-0c33ac3a8c38 --- .../Getting-a-STRING-from-a-NUMERIC-object.wiki | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 documentation/18.01/eiffel/Tutorials/Mini-HowTo/Getting-a-STRING-from-a-NUMERIC-object.wiki diff --git a/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Getting-a-STRING-from-a-NUMERIC-object.wiki b/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Getting-a-STRING-from-a-NUMERIC-object.wiki new file mode 100644 index 00000000..2e2a8ee2 --- /dev/null +++ b/documentation/18.01/eiffel/Tutorials/Mini-HowTo/Getting-a-STRING-from-a-NUMERIC-object.wiki @@ -0,0 +1,12 @@ +[[Property:uuid|B74D374E-895C-4F22-B95F-656BD78ECD03]] +[[Property:weight|0]] +[[Property:title|Getting a STRING from a NUMERIC object]] +[[Property:link_title|NUMERIC to STRING]] +Every class have the out method that can be used to get a text version of the object. For a lot of class, this method return internal informations that is not really usefull for the end user. But for every NUMERIC class, the out method return a text representation of the number that the NUMERIC object represent. + + + print_integer(a_integer:INTEGER) + do + print(a_integer.out + "%N") + end + \ No newline at end of file