Re: Question on using FP numbers in python 2

2014-02-15 Thread Gene Heskett
On Saturday 15 February 2014 12:13:42 Steven D'Aprano did opine: > On Sat, 15 Feb 2014 00:07:49 -0500, Gene Heskett wrote: > >> Can you extract the float calculations and show us, together with > >> some sample data, expected result, and actual result? > > > > Not extract, but let you get & look

Re: Question on using FP numbers in python 2

2014-02-15 Thread Steven D'Aprano
On Sat, 15 Feb 2014 00:07:49 -0500, Gene Heskett wrote: >> Can you extract the float calculations and show us, together with some >> sample data, expected result, and actual result? > > Not extract, but let you get & look at the code, its the top entry on > this page: > >

Re: Question on using FP numbers in python 2

2014-02-14 Thread Chris Angelico
On Sat, Feb 15, 2014 at 4:50 PM, Gene Heskett wrote: >> I'm afraid I can't really help more, as I don't speak CNC. > > Actually, the output is RS-274-D, originally from NIST. But it has > developed some pretty distinct "accents" in the 20 some years its been in > the wild. The NIST version was,

Re: Question on using FP numbers in python 2

2014-02-14 Thread Gene Heskett
On Saturday 15 February 2014 00:43:53 Chris Angelico did opine: > On Sat, Feb 15, 2014 at 4:07 PM, Gene Heskett wrote: > > Not extract, but let you get & look at the code, its the top entry on > > this page: > > > > > Code_Generators

Re: Question on using FP numbers in python 2

2014-02-14 Thread Chris Angelico
On Sat, Feb 15, 2014 at 4:07 PM, Gene Heskett wrote: > Not extract, but let you get & look at the code, its the top entry on this > page: > > Code_Generators#Counterbore_Software> Interesting. At the top of the file, it says GPL3 or l

Re: Question on using FP numbers in python 2

2014-02-14 Thread Gene Heskett
On Friday 14 February 2014 23:47:26 Steven D'Aprano did opine: > On Fri, 14 Feb 2014 22:25:59 -0500, Gene Heskett wrote: > > Greetings; > > > > Is there something I can search for and fix in some python code that > > is giving me bogus answers that get good only when there is a valid > > digit to

Re: Question on using FP numbers in python 2

2014-02-14 Thread Gene Heskett
On Friday 14 February 2014 23:37:53 Chris Angelico did opine: > On Sat, Feb 15, 2014 at 2:25 PM, Gene Heskett wrote: > > Is there something I can search for and fix in some python code that > > is giving me bogus answers that get good only when there is a valid > > digit to the left of the decima

Re: Question on using FP numbers in python 2

2014-02-14 Thread Grant Edwards
On 2014-02-15, Gene Heskett wrote: > Is there something I can search for and fix in some python code that > is giving me bogus answers that get good only when there is a valid > digit to the left of the decimal point? Yes. Search for incorrectly written code and fix it. I'd start part way down

Re: Question on using FP numbers in python 2

2014-02-14 Thread Steven D'Aprano
On Fri, 14 Feb 2014 22:25:59 -0500, Gene Heskett wrote: > Greetings; > > Is there something I can search for and fix in some python code that is > giving me bogus answers that get good only when there is a valid digit > to the left of the decimal point? Er, yes? Anything which involves floating

Re: Question on using FP numbers in python 2

2014-02-14 Thread Chris Angelico
On Sat, Feb 15, 2014 at 2:25 PM, Gene Heskett wrote: > Is there something I can search for and fix in some python code that is > giving me bogus answers that get good only when there is a valid digit to > the left of the decimal point? > Interesting. I'd look for anything that mixes very large an

Question on using FP numbers in python 2

2014-02-14 Thread Gene Heskett
Greetings; Is there something I can search for and fix in some python code that is giving me bogus answers that get good only when there is a valid digit to the left of the decimal point? Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Ple