Re: Job Offer: Python Ninja or Pirate!

2007-12-10 Thread Nikos Vergas
> Challenge: > A valid response will be either a solution to the problem below, or a > link to some code of which you > are particularly proud. > > Problem: In the dynamic language of your choice, write a short program > that will: > 1. define a list of the following user ids 42346, 77290, 729 (yo

Re: Floating point subtraction rounding error (NOT display error)

2007-12-14 Thread Nikos Vergas
> Solved: used round(number,12) in this case for all of the operands of > my arcsines. Not pretty, but at least VIM made it easy... You might have the same problem though: >>> round(1.0003401032523500235,13) 1.000340103 >>> round(1.0003401032523500235,12) 1.00034011 -