FRAC/de

From MCS Wiki AVR
< FRAC(Difference between revisions)
Jump to: navigation, search
((**COPIED FROM ENGLISH PAGE**) =)
(Example)
 
(4 intermediate revisions by one user not shown)
Line 1: Line 1:
 
= <span class="f_Header">Funktion</span> =
 
= <span class="f_Header">Funktion</span> =
  
Gibt den Nachkommaanteil (Fraction) einer Single-Zahl zurück.
+
Gibt den Nachkomma-Anteil (Fraction) einer Single-Zahl zurück.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Line 15: Line 15:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Remarks</span> =
+
= <span class="f_Header">Anmerkungen</span> =
 
<div style="padding: 0px; margin: 0px 0px 0px 4px;">
 
<div style="padding: 0px; margin: 0px 0px 0px 4px;">
 
{| width="539" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
 
{| width="539" cellspacing="0" cellpadding="1" border="1" style="border: 2px solid rgb(0, 0, 0); border-spacing: 0px; border-collapse: collapse;"
Line 23: Line 23:
  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
A numeric single variable that is assigned with the fraction of variable single.
+
Single Variable der der Nachkomma-Anteil der Variablen single zugewiesen werden soll.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
Line 30: Line 30:
  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 405px; border: 1px solid rgb(0, 0, 0);" |  
The single variable to get the fraction of.
+
Single Variable von der der Nachkomma-Anteil bestimmt werden soll.
  
 
|}
 
|}
Line 36: Line 36:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
The fraction is the right side after the decimal point of a single.
+
Fraction ist der Teil nach dem Komma bei einer Single-Zahl.
  
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
Line 42: Line 42:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">See Also</span> =
+
= <span class="f_Header">Siehe auch</span> =
  
 
[[INT]]
 
[[INT]]
Line 50: Line 50:
 
<span style="font-family: Arial;">&nbsp;</span>
 
<span style="font-family: Arial;">&nbsp;</span>
  
= <span class="f_Header">Example</span> =
+
= <span class="f_Header">Beispiel</span> =
  
 
<br/><source lang="bascomavr">
 
<br/><source lang="bascomavr">
Line 62: Line 62:
 
   
 
   
 
$regfile = "m48def.dat" ' specify the used micro
 
$regfile = "m48def.dat" ' specify the used micro
$crystal = 8000000 ' used crystal frequency
+
$crystal = 8000000 ' Taktfrequenz
$baud = 19200 ' use baud rate
+
$baud = 19200 ' Baudrate
 
$hwstack = 32 ' default use 32 for the hardware stack
 
$hwstack = 32 ' default use 32 for the hardware stack
 
$swstack = 40 ' default use 10 for the SW stack
 
$swstack = 40 ' default use 10 for the SW stack

Latest revision as of 23:19, 2 March 2013

Contents

Funktion

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

 

 

Syntax

var = FRAC( single )

 

 

Anmerkungen

var

Single Variable der der Nachkomma-Anteil der Variablen single zugewiesen werden soll.

single

Single Variable von der der Nachkomma-Anteil bestimmt werden soll.

 

Fraction ist der Teil nach dem Komma bei einer Single-Zahl.

 

 

Siehe auch

INT

 

 

Beispiel


'-------------------------------------------------------------------------------
'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 ' Taktfrequenz
$baud = 19200 ' Baudrate
$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