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°1301

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° 1301  Izibasic and file write - binary numbers

le 26/11/2005 @ 23:50
par John_R

Anonyme



Wondering if there is a way to store numbers in a different format than string exponational (sp) format?

Or if its planned for a future versio?

Ecrire à John_R   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 27/11/2005 @ 12:11
par aldweb

Anonyme

visiteur
Sure there are ways to do it. String exponantial format is the one used by iziBasic for its purposes, but you are not obliged to stick to it.

The principle will then be to convert to the format you want in a string variable or in the MegaString (very adapted for byte purposes) and save this string variable or the MegaString. Then, to load back, read a string variable, and convert back if needed.
Sorry, I don't feel I am very clear in my explanations...

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 27/11/2005 @ 23:23
par John_R

Anonyme

visiteur
You are most clear :)

Thanks


I am so use to higher level language (Like Basic), that i do not understand why one can not save a number in binary. With out the conversion process.

Just curious.

John_R

  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 28/11/2005 @ 11:54
par aldweb

Anonyme

visiteur
Hello John,

It was a decision, when I started iziBasic, to have it work with numbers in an easy way for users, so they would not have to bother if they are bytes, integers, long integers, reals...

So all numbers are single precision reals in iziBasic and iziBasic manages to work with these numbers in a transparent way.

If a number is an integer it is written in an integer format, encapsulated in a string. If it is a real number, it is saved in this exponential format, still put in a string.

Then, using iziBasic's read & write statements and functions, you may easily write a number and read it in a string variable, write a number in a string and read it in a number variable.

This is I believe very much in the "spirit" of the original Basic language.

I hope I answered your curiosity

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 ^