pelzlpj / orpie

Curses-based RPN calculator
GNU General Public License v3.0
70 stars 5 forks source link

Copy and paste numbers in exponential notation from X11 clipboard #16

Open ckoe-bccms opened 5 years ago

ckoe-bccms commented 5 years ago

Hello,

I have a question concerning the intended behaviour if a number with an exponent in scientific notation is pasted from the X11 clipboard into the orpie input field. Originally I thought only negative exponents were a problem, but this appears to be more fundamental, see below.

What works nicely is pasting numbers with positive implied exponents in scientific notation, i.e. 100e5. What does not work is basically everything else as far as I can see, e.g. 100e+5, 100E5, 100E+05, 100e-5, 100e-05, 100E-05 etc. . For example, fortran programs usually would output floating point numbers in exponential notation as 0.1234E-05 or 0.1234E+05 (eventually with surpressed leading zero, of course format can be changed) and C/python are similar using a lower case "e".

I wonder if it would be possible to enable pasting these numbers as input directly from the X11 clipboard into orpie ? It would make orpie much more useful to me, especially for negative exponents.

I am using orpie 1.5.2 from debian 9 at the moment.

And of course thank you for making this nice program available !

Best Regards