bigatom.e - added exponential format output specifier

new topic     » topic index » view thread      » older message » newer message

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 
 

it's a very easy addition with bigatoms.

There would be no other way than by pastebin?

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu