forum-msg-id-125824-edit

Original date:2014-12-21 09:26:27 Edited by: cargoan Subject: bigatom.e - added exponential format output specifier

I added 'e' or 'E' to output format specifier for bigatom.

Example:

... 
560233624827041978623209002160990235304 
 1.234000e+23 
+1.234000e+23 
-1.234000E+23 
-1.234000e+23 
 1.234568e-23 
+1.234568E-23 
-1.234568e-23 
-1.234568E-23 
┌─────────────────────────────────────────────────────[domingo, 21 de diciembre 15:19 CET] 
├─[cargoan en ~cargoan/Documentos/Programaci?n/Euphoria/bigatom-a1] 
└─[bash 4.3]──[$]: tail -n 10 bigatom.e 
 
   ba_printf(1, "%2.6eB\n",  ba_new(1.234e23)) 
   ba_printf(1, "%+2.6eB\n", ba_new(1.234e23)) 
   ba_printf(1, "%2.6EB\n",  ba_new(-1.234e23)) 
   ba_printf(1, "%+2.6eB\n", ba_new(-1.234e23)) 
   ba_printf(1, "%2.6eB\n",  ba_new(1.23456789e-23)) 
   ba_printf(1, "%+2.6EB\n", ba_new(1.23456789e-23)) 
   ba_printf(1, "%2.6eB\n",  ba_new(-1.23456789e-23)) 
   ba_printf(1, "%+2.6EB\n", ba_new(-1.23456789e-23)) 
end ifdef 
 

There would be no other way than by pastebin?

Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu