Mitsubishi MELFA CR1D Instruction Manual page 326

Table of Contents

Advertisement

4MELFA-BASIC IV
Chr$
[Function]
Returns the character that has the character code obtained from the specified equation.
[Format]
<Character String Variable >=Chr$(<Equation>)
[Reference Program]
1 M1=&H40
2 C1$=Chr$(M1+1)
[Explanation]
(1) Returns the character that has the character code obtained from the specified equation.
(2) If the equation does not evaluate to an integer, the character will be returned whose character code cor-
responds to the integral value obtained by rounding the fraction.
[Reference]
Asc
Cint
[Function]
Rounds the fractional part of an equation to convert the value into an integer.
[Format]
<Numeric Variable>=Cint(<Equation>)
[Reference Program]
1 M1=Cint(1.5)
2 M2=Cint(1.4)
3 M3=Cint(-1.4)
4 M4=Cint(-1.5)
[Explanation]
(1) Returns the value obtained by rounding the fractional part of an equation.
[Reference]
Int,
Fix
4-313 Detailed Explanation of Functions
' "A" is assigned to C1$.
' 2 is assigned to M1.
' 1 is assigned to M2.
' -1 is assigned to M3.
' -2 is assigned to M4.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents