FRAC/de

(Difference between revisions)
Jump to: navigation, search
m (1 revision)
((**COPIED FROM ENGLISH PAGE**) =)
Line 1: Line 1:
== (**COPIED FROM ENGLISH PAGE**) === <span class="f_Header">Action</span> =
+
= <span class="f_Header">Funktion</span> =
  
Returns the fraction of a single.
+
Gibt den Nachkommaanteil (Fraction) einer Single-Zahl zurück.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>

Revision as of 23:14, 2 March 2013

Contents

Funktion

Gibt den Nachkommaanteil (Fraction) einer Single-Zahl zurück.

 

 

Syntax

var = FRAC( single )

 

 

Remarks

var

A numeric single variable that is assigned with the fraction of variable single.

single

The single variable to get the fraction of.

 

The fraction is the right side after the decimal point of a single.

 

 

See Also

INT

 

 

Example


'-------------------------------------------------------------------------------
'copyright : (c) 1995-2005, MCS Electronics
'micro : Mega48
'suited for demo : yes
'commercial addon needed : no
'purpose : demonstrates FRAC function
'-------------------------------------------------------------------------------
 
$regfile = "m48def.dat" ' specify the used micro
$crystal = 8000000 ' used crystal frequency
$baud = 19200 ' use baud rate
$hwstack = 32 ' default use 32 for the hardware stack
$swstack = 40 ' default use 10 for the SW stack
$framesize = 40 ' default use 40 for the frame space
 
 
Dim X As Single
 
X = 1.123456
Print X
Print Frac(x)
End

Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language