Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

im need convert String to Single help

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
lslabs2005

Bascom Member



Joined: 28 Dec 2004
Posts: 57

PostPosted: Sat Apr 11, 2015 5:55 pm    Post subject: im need convert String to Single help Reply with quote

$regfile = "M32adef.dat"
$crystal = 11059200
$baud = 9600
$hwstack = 100
$swstack = 90
$framesize = 120


Config Single = Scientific , Digits = 1
Dim S_single As Single
Dim Str_test As String * 5

Im Put Is In String
Str_test = "104.3"
How Convert
Im Need Result Into Single Is 104.3
S_single

(BASCOM-AVR version : 2.0.7.8 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4970
Location: Holland

blank.gif
PostPosted: Sat Apr 11, 2015 8:18 pm    Post subject: Reply with quote

have a look at VAL() in the help.
_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum