BBC BASIC for Windows
« Converting Variable Types »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 10:55pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Converting Variable Types  (Read 771 times)
dfeugey
Guest
xx Re: Converting Variable Types
« Reply #2 on: Jun 19th, 2015, 09:36am »

I don't think so.
User IP Logged

DJ-Dwayne
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 4
xx Re: Converting Variable Types
« Reply #3 on: Jun 19th, 2015, 10:12am »

on Jun 19th, 2015, 09:36am, dfeugey wrote:
I don't think so.


?????
Please explain.
I just went....
Code:
number2 = VAL(number$) 

I can now do maths with it.
Or is there a better way?
Please tell ???
User IP Logged

rtr2
Guest
xx Re: Converting Variable Types
« Reply #4 on: Jun 19th, 2015, 2:47pm »

on Jun 19th, 2015, 10:12am, DJ-Dwayne wrote:
Or is there a better way?

VAL is the correct way.

Richard.
User IP Logged

dfeugey
Guest
xx Re: Converting Variable Types
« Reply #5 on: Jun 20th, 2015, 08:44am »

Quote:
Please explain.

Easy smiley
Is there a better way? > I don't think so.
That's the only and right way to do it.
« Last Edit: Jun 20th, 2015, 08:45am by dfeugey » User IP Logged

rtr2
Guest
xx Re: Converting Variable Types
« Reply #6 on: Jun 20th, 2015, 11:43am »

Just to add that VAL is affected by the *lowercase setting:

Code:
      *lowercase on
      PRINT VAL("1e3")
      *lowercase off
      PRINT VAL("1e3") 

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls