Brandon Enright on Fri, 26 Jan 2018 00:07:52 +0100 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Parser use and abuse |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 25 Jan 2018 22:59:32 +0000 Jacques Gélinas <jacquesg00@hotmail.com> wrote: > After years of receiving warnings from the Pari/GP parser because of > a typo, I finally got a pleasant surprise after typing a single dot > on an input line: the parser returned the working precision (:-) ! > > # . > %1 = 0.E-19 > > Any other such unexpected parser features ? I believe this is just being interpreted as '0.0' which you can also get by entering '0.' or '.0'. In other words, I think it's not really a parser feature that . is treated in some special way but that it's being treated as though you've entered a float. If you want to see the working precision, use '\p' Brandon -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQsPI0+tjl0LJJzd/apoY/MCyX3ggUCWmpjOwAKCRCpoY/MCyX3 ghs6AJ41rosSRB4mdIAfRM8esrrZXOA9ZACfdDVDnzXpUnmhd/Bpmamrp1GELUk= =M8EH -----END PGP SIGNATURE-----