PEP0238 lament
Samuel Kilchenmann
skilchen at swissonline.ch
Wed Jul 25 10:10:17 EDT 2001
"Steve Horne" <sh at ttsoftware.co.uk> wrote in
news:916olt0p3kciv0evmotdg6jev9bl29l57i at 4ax.com...
> On Mon, 23 Jul 2001 03:26:52 -0400, "Tim Peters" <tim.one at home.com>
> wrote:
>
> >[]Stephen Horne]
> >> ...
> >> And what about the languages web developers are used to, such as
> >> VBScript and JavaScript.
> >
> >Good thing you stopped before mentioning Perl (yes, 1/2 is 0.5 there) --
> >I'm afraid the "mimic other languages" approach requires picking
> >languages very carefully if you want the illusion of consistency.
> >By the way, 1/2 is also 0.5 in standard JavaScript:
>
> My mistake. However, the overwhelming majority of code is written to a
> pattern where 1/2=0 - the simple fact Visual BASIC does it almost sets
> the standard itself
Neither VBScript nor Visual BASIC nor VBA do integer division by default,
all use the '\' operator to force integer division.
Per default: 1/2 == 0.5 in VBScript, VBA and Visual Basic.
More information about the Python-list
mailing list