How to format real number?

23 views
Skip to first unread message

Brother Bill

unread,
Jun 3, 2024, 8:18:27 PMJun 3
to Eiffel Users
Where is the documentation for the equivalent of sprintf (C) or print a number as a decimal with 10 digits of precision?

rfo amalasoft.com

unread,
Jun 3, 2024, 9:39:51 PMJun 3
to eiffel...@googlegroups.com
I wrote a printf library that might interest you.  It's a bit long in the tooth, but I like it 🙂 It's void-safe and quite a bit more expressive (imho) than the C family versions.
R


From: eiffel...@googlegroups.com <eiffel...@googlegroups.com> on behalf of Brother Bill <brother...@gmail.com>
Sent: Monday, June 3, 2024 8:18 PM
To: Eiffel Users <eiffel...@googlegroups.com>
Subject: [eiffel-users] How to format real number?
 
Where is the documentation for the equivalent of sprintf (C) or print a number as a decimal with 10 digits of precision?
--
You received this message because you are subscribed to the Google Groups "Eiffel Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eiffel-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eiffel-users/f6c40c45-6306-4c10-a93f-ef0e8f36a3fbn%40googlegroups.com.
AEL_Printf.pdf

Brother Bill

unread,
Jun 4, 2024, 10:41:22 AMJun 4
to Eiffel Users
Greetings rfo,  This failed to compile on AEL_PF_FORMAT.list_arg_out (ael_printf) 1014, 31.
It looks really good.  I'll use it once it compiles and runs on Eiffel 23.09
See attachment for sample project.
p463_ael_printf.zip

Jocelyn Fiat

unread,
Jun 4, 2024, 11:42:00 AMJun 4
to eiffel...@googlegroups.com



--
Jocelyn
------------------------------------------------------------------------
Eiffel Software
https://www.eiffel.com
Customer support: https://support.eiffel.com
User group: https://groups.google.com/forum/#!forum/eiffel-users
------------------------------------------------------------------------

rfo amalasoft.com

unread,
Jun 4, 2024, 12:59:41 PMJun 4
to eiffel...@googlegroups.com
I'll have a look.  I've been using version 22 for a while.  I'll try with the newer version.  Thanks
R

Sent: Tuesday, June 4, 2024 10:41 AM
To: Eiffel Users <eiffel...@googlegroups.com>
Subject: Re: [eiffel-users] How to format real number?
 
Reply all
Reply to author
Forward
0 new messages