Blitz (223/459)

From:Th.Will
Date:16 Jan 2000 at 17:21:43
Subject:Re: MC68000(+) command execution times.

Message to..: "blitz-list@netsoc.ucd.ie"
Message from: "mr.vain@amigascne.org"
Subject.....: "Re: MC68000(+) command execution times."

o.0
.---------------------------------------------------`---'------. .___.
| >> S � E � C � R � E � T � L � Y � ! << | |: .|
____|____ _________ ________ _____________________________ _____| |. :|
._\ ____/__\� ____/.\ .___/.\____ �/� ____/ . . /� |__\� \ _|___|
|: \_____ �// ___/ :|: |/ :|: _/ _// ___/ :|_|. :|_// l �\_ \/ �/|
|____ _/_____ .|____ .|___\ .\____ .| |: .|____ /\_ _/:|
l_____j l_____j l____jnOp!\___/ l_____j |___| l_____j |_____|__|
| | (___)
`-----------[ if four registers are not enough... ]------------'

Hi Sami and all blitzers!

> But if the first number is integer, then the next one is converted to
> integer as well. So try to put them in the other way around.
>
> NPrint 5*0.25 ; result is 0
> NPrint 0.25*5 ; result is 1.25
>
> This is perfectly normal way for math operations in many other languages
> too, not just in blitz.

I checked out your problem and i think that it isn't really a bad bug of
blitz! It will be more a problem with the NPrint command, because i think
the NPrint commands read all the printed stuff by .b (byte) instead of .l
(long)! But i'am not really sure about that topic! Just try following and
see that the last two versions will work fine!

It seems that the NPrint command use for his first number/text .l to read
the number of chars to print and the rest (2nd number or text) it will be
read byte by byte!? Don't blame me for my english, thanks! ;)

signed off
"Mr.Vain of Secretly!^DarkSide" (Germany)

;-------------------------------------------------------------------------
; >> Amiga Rulez! - Professionals don't use Micro$aft Windows! <<
;-------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie