aldweb

Fermer I. aldweb

Fermer II. Gratuitiels PC

Fermer III. Gratuitiels Palm

Fermer IV. Partagiciels Palm

Fermer V. iziBasic Palm

Fermer VI. Connaissance Palm

Fermer VII. Ordinateur Poche

Fermer VIII. miniPortail

Spécial !



Version mobile
de l'aldweb Site

m.aldweb.com


Ni Français, ni Anglais ?

Essayez donc l'un de ces drapeaux :
[de] [es] [it] [pt]
Recherche




Météo / Spam / www

Météo Lyon


aldweb contre le SPAM


Newsletter
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
S'abonner
Se désabonner
298 Abonnés
Sites web de la famille

Webmaster - Infos
News Amis
Visites

   visiteurs

   visiteurs en ligne

Sondage
Comment trouve-tu le nouvel habillage de l'aldweb Site ?
 
Superbe !
Joli
Moyen
Moche...
Résultats
forum.gifForum - iziBasic - Sujet n°1399

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

actif  Sujet n° 1399  multiplying variables doesn't work?

le 02/05/2006 @ 18:05
par bh77a

Anonyme



Hi,

When I try:

A=5
B=5
C=A*B
PRINT C

The display is 2.5000000e01

When I try

C=5*5
PRINT C

The display is 25

Is this a problem on my behalf... as soon as I solve this ellipses will be on the way!!! It is important so that if one doesn't have access to the source code one can dictate its parameters.

Regards,
bh77a
Ecrire à bh77a   Poster une réponse  Haut

[]   


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 1
--------
le 02/05/2006 @ 19:04
par aldweb

Anonyme

visiteur
Hopefully, it does work. Please don't scare people with such a title!

On my Tungsten C, I always get 2.5000000e01, in both cases you submitted.

Furthermore 2.5000000e01 and 25 are just the same value, one expressed in exponential notation, the other one in plain integer.

PRINT C should display 2.5000000e01 (default display)
PRINT C USING 0 should display 25

Isn't it the case with you?

Cheers,
aldweb
Ecrire à aldweb   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 2
--------
le 02/05/2006 @ 20:02
par bh77a

Anonyme

visiteur
Dear Aldweb,

I apologize for such a title... it was in frustration to several days of trying to get code to work...

In short, I have developed a simple bit of code to allow the user to draw ellipses, both hollow and filled. Here is the code...

REM location - defined by user or gathered by pen tap
C=40
D=40

S=0.01
B=0
F=PI

FOR I=0.00 TO F STEP S
X=COS(I)
X=(X*30)
Y=SIN(I)
Y=(Y*10)

V=C+X:U=D+Y
Z=C-X:W=D-Y

PSET V,U
PSET V,W
PSET Z,W
PSET Z,U
NEXT

This will draw a very fast hollow ellipse. The problem is that I would like to be able to set the

X=(X*30)
Y=(Y*10)

lines to user defined variables such as

A=30:B=10
REM perhaps gathered by pen coordinates for drawing
X=(X*A)
Y+(Y*B)

The problem is that this doesn't work for me... it only produces a straight line. Any thoughts would be most appreciated.

Again, I apologize for the *scary* title. Your math works properly, my code does not...

Regards,
bh77a
Ecrire à bh77a   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 3
--------
le 02/05/2006 @ 22:07
par bh77a

Anonyme

visiteur
Hi,

I have solved the problem... very, very, very, very, very stupid mistake by ME. Aldweb's program iziBasic does it's math perfectly. Please don't tell the math teacher down the hall of the troubles I have :).

Regards,
bh77a
Ecrire à bh77a   Poster une réponse  Haut

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Réponse n° 4
--------
le 06/05/2006 @ 14:43
par aldweb

Anonyme

visiteur
Well, maybe the math teacher does not know how to program...

Cheers

@+
aldweb
Ecrire à aldweb   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
[]
Catégories de discussion  Forum 



 
^ Haut ^