Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Data Type Sizes

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

Posted: 02 January 2006, 11:54 AM    Post subject: Data Type Sizes Reply with quote

I am reading the ZBasic reference manual. Section 2.2 Data Types lists all of the available data types but does not mention the size of these types. Some of the sizes are easy to figure out, but not all. What is the size of an long, unsigned long, single and a string? I understand that a string's size depends on its declaration but there is often a couple of bytes of overhead there too. I am trying to calculate storage requirements - in external FRAM - for an application I am thinking of building.

Any enlightenment will be appreciated.

Vic
Back to top
mikep



Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX

Posted: 02 January 2006, 16:25 PM    Post subject: Reply with quote

You need to read a little more. Section 3.19 gives the information you are looking for.

Singles are IEEE single precision floating point numbers and are 4 bytes by defnition.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group