mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 14:52:03 +01:00
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
This commit is contained in:
@@ -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 <code>out</code> 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 <code>NUMERIC</code> class, the <code>out</code> method return a text representation of the number that the <code>NUMERIC</code> object represent.
|
||||
|
||||
<code>
|
||||
print_integer(a_integer:INTEGER)
|
||||
do
|
||||
print(a_integer.out + "%N")
|
||||
end
|
||||
</code>
|
||||
Reference in New Issue
Block a user