Dear Tom and other programmers,
Is that possible for een input function buildin for digits like Pascal Read en ReadLn.
Is not interesting to converting from string tot single, double, integer, word, byte.
I think so an example
"=================================================================="
" Application: Sinus-math "
"=================================================================="
"=================================================================="
" Definition constant "
%PI = 3.14159265359 "
"=================================================================="
"=================================================================="
" Declaration variabels "
"=================================================================="
DIM XG AS SINGLE
DIM XR AS SINGLE
DIM SX AS SINGLE
DIM SXR AS SINGLE
"=================================================================="
"Begin program PBDOS/PBCC "
"=================================================================="
INPUT "Enter an angle in graden", XG // Problems conversion to an string is needed ==> program slower
'// Pascal very easy : Write('Enter an angle in graden');
ReadLn(XG);
'// Faster program ==> no conversion!!!!
XR = XG * PI / 180
SX = SIN(XR);
SXR = ROUND(SX * 100) / 100
'// Faster statement ==> no conversions
'// WriteLn('De sinus daarvan is ', SXR : position : decimals);
PRINT USING "De sinus daarvan is",.....
// To much problems en to much conversions with the statements INPUT, PRINT, PRINT USING.
// Is better that the statements works with strings (separate SPRINT, SINPUT) and digits all types (INPUT, PRINT)
SINPUT "Geef een getal in", a$ // Only for strings
INPUT "Geef een getal in", a? | a?? | a???, | a& | a&& | a! | a# | a## | [email protected] | [email protected]@ // Only digits inputting
SPRINT "Geef een string weer", variabele : position : decimals
position and decimals : format like C with %<datatype><position><frac>
--> Fast compiling
--> easy programming for the programmer
--> No conversion from digits in string of strings to digits
Can you please A.S.A.P this new statements buildin to PBDOS, PBCC new versions!!!!!
Greetings,
stephane
------------------
Is that possible for een input function buildin for digits like Pascal Read en ReadLn.
Is not interesting to converting from string tot single, double, integer, word, byte.
I think so an example
"=================================================================="
" Application: Sinus-math "
"=================================================================="
"=================================================================="
" Definition constant "
%PI = 3.14159265359 "
"=================================================================="
"=================================================================="
" Declaration variabels "
"=================================================================="
DIM XG AS SINGLE
DIM XR AS SINGLE
DIM SX AS SINGLE
DIM SXR AS SINGLE
"=================================================================="
"Begin program PBDOS/PBCC "
"=================================================================="
INPUT "Enter an angle in graden", XG // Problems conversion to an string is needed ==> program slower
'// Pascal very easy : Write('Enter an angle in graden');
ReadLn(XG);
'// Faster program ==> no conversion!!!!
XR = XG * PI / 180
SX = SIN(XR);
SXR = ROUND(SX * 100) / 100
'// Faster statement ==> no conversions
'// WriteLn('De sinus daarvan is ', SXR : position : decimals);
PRINT USING "De sinus daarvan is",.....
// To much problems en to much conversions with the statements INPUT, PRINT, PRINT USING.
// Is better that the statements works with strings (separate SPRINT, SINPUT) and digits all types (INPUT, PRINT)
SINPUT "Geef een getal in", a$ // Only for strings
INPUT "Geef een getal in", a? | a?? | a???, | a& | a&& | a! | a# | a## | [email protected] | [email protected]@ // Only digits inputting
SPRINT "Geef een string weer", variabele : position : decimals
position and decimals : format like C with %<datatype><position><frac>
--> Fast compiling
--> easy programming for the programmer
--> No conversion from digits in string of strings to digits
Can you please A.S.A.P this new statements buildin to PBDOS, PBCC new versions!!!!!
Greetings,
stephane
------------------
Comment