On Tue, Apr 20, 2010 at 9:37 PM, Marco Rompré wrote:
> Hi! in my programming course at university, I need to create a python model
> with 2 concepts in a one towards many relation each of them having 2-3
> properties.
>
> Also, I need to create an application with screens to add, modify, and
> d
Hi! in my programming course at university, I need to create a python model
with 2 concepts in a one towards many relation each of them having 2-3
properties.
Also, I need to create an application with screens to add, modify, and
delete the data of the model.
Can someone know where I can find t
>From the virtual desk of Lowell Tackett
--- On Tue, 4/20/10, Steven D'Aprano wrote:
> From: Steven D'Aprano
> Subject: Re: [Tutor] the binary math "wall"
> To: tutor@python.org
> Date: Tuesday, April 20, 2010, 7:39 PM
> On Wed, 21 Apr 2010 02:58:06 am
> Lowell Tackett wrote:
> > I'm runni
On Wed, 21 Apr 2010 02:58:06 am Lowell Tackett wrote:
> I'm running headlong into the dilemma of binary math representation,
with game-ending consequences, e.g.:
> >>> 0.15
>
> 0.14999
>
> Obviously, any attempts to manipulate this value, under the misguided
> assumption that it is tru
> -Original Message-
> From: tutor-bounces+mike.hansen=atmel@python.org
> [mailto:tutor-bounces+mike.hansen=atmel@python.org] On
> Behalf Of Peter Meagher
> Sent: Friday, April 16, 2010 3:13 AM
> To: tutor@python.org
> Subject: [Tutor] Python Examples of processing MS Outlook
>
On Tue, 20 Apr 2010 14:45:50 -0400
Dave Angel wrote:
> If all values are made up of degrees/minutes/seconds, and seconds is a
> whole number, then store values as num-seconds, and do all arithmetic on
> those values. Only convert them back to deg/min/sec upon output.
This seems the most dire
Lowell Tackett wrote:
I'm running headlong into the dilemma of binary math representation, with
game-ending consequences, e.g.:
0.15
0.14999
Obviously, any attempts to manipulate this value, under the misguided assumption that it
is truly "0.15" are ill-advised, with
>From the virtual desk of Lowell Tackett
--- On Tue, 4/20/10, Luke Paireepinart wrote:
> From: Luke Paireepinart
> Subject: Re: [Tutor] the binary math "wall"
> To: "Lowell Tackett"
> Cc: "tutor"
> Date: Tuesday, April 20, 2010, 1:20 PM
> On Tue, Apr 20, 2010 at 11:58 AM,
> Lowell Tacket
On 04/21/10 02:58, Lowell Tackett wrote:
> I'm running headlong into the dilemma of binary math representation, with
> game-ending consequences, e.g.:
>
Never use float for representing numbers, use float to represent a
"magnitude", do not rely on the exact representation of the number itself.
On Tue, 20 Apr 2010 09:58:06 -0700 (PDT)
Lowell Tackett wrote:
> I'm running headlong into the dilemma of binary math representation, with
> game-ending consequences, e.g.:
>
> >>> 0.15
> 0.14999
> [...]
> The last line should be zero, and needs to be for me to continue this
> algo
On Tue, Apr 20, 2010 at 11:58 AM, Lowell Tackett wrote:
> I'm running headlong into the dilemma of binary math representation, with
> game-ending consequences, e.g.:
>
> >>> 0.15
> 0.14999
>
> Obviously, any attempts to manipulate this value, under the misguided
> assumption that it is
On Tue, Apr 20, 2010 at 12:58 PM, Lowell Tackett
wrote:
> Any of Python's help-aids that I apply to sort things out, such as formatting
> (%), or modules like "decimal" do nothing more than "powder up" the display
> for visual consumption (turning it into a string). The underlying float
> valu
On Tue, Apr 20, 2010 at 11:58 AM, Lowell Tackett
wrote:
> I'm running headlong into the dilemma of binary math representation, with
> game-ending consequences, e.g.:
>
0.15
> 0.14999
>
> Obviously, any attempts to manipulate this value, under the misguided
> assumption that it i
I'm running headlong into the dilemma of binary math representation, with
game-ending consequences, e.g.:
>>> 0.15
0.14999
Obviously, any attempts to manipulate this value, under the misguided
assumption that it is truly "0.15" are ill-advised, with inevitable bad results.
the part
14 matches
Mail list logo