FIX/de

(Difference between revisions)
Jump to: navigation, search
((**COPIED FROM ENGLISH PAGE**) =)
(Remarks)
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;"
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="13%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="13%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
Var
+
var
  
 
| valign="top" width="100%" style="width: 464px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 464px; border: 1px solid rgb(0, 0, 0);" |  
A single variable that is assigned with the FIX of variable x.
+
Gleitkommazahl der das Ergebnis von FIX zugewiesen wird.
  
 
|- style="vertical-align: top;"
 
|- style="vertical-align: top;"
 
| valign="top" width="13%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="13%" style="width: 66px; border: 1px solid rgb(0, 0, 0);" |  
X
+
x
  
 
| valign="top" width="100%" style="width: 464px; border: 1px solid rgb(0, 0, 0);" |  
 
| valign="top" width="100%" style="width: 464px; border: 1px solid rgb(0, 0, 0);" |  
The single to get the FIX of.
+
Gleitkommazahl von der der FIX-Wert gebildet wird.
  
 
|}
 
|}

Revision as of 22:50, 2 March 2013

Contents

Funktion

Gibt für Zahlen über Null den nächstkleineren Wert und für negative Zahlen den nächstgrößeren Wert zurück.

 

 

Syntax

var = FIX( x )

 

 

Anmerkungen

var

Gleitkommazahl der das Ergebnis von FIX zugewiesen wird.

x

Gleitkommazahl von der der FIX-Wert gebildet wird.

 

 

See Also

INT , ROUND , SGN

 

 

Example


'-----------------------------------------------------------------------------------------
'name : round_fix_int.bas
'copyright : (c) 1995-2005, MCS Electronics
'purpose : demo : ROUND,FIX
'micro : Mega48
'suited for demo : yes
'commercial addon needed : no
'-----------------------------------------------------------------------------------------
 
$regfile = "m48def.dat" ' specify the used micro
$crystal = 4000000 ' used crystal frequency
$baud = 19200 ' use baud rate
$hwstack = 32 ' default use 32 for the hardware stack
$swstack = 10 ' default use 10 for the SW stack
$framesize = 40 ' default use 40 for the frame space
 
Dim S As Single , Z As Single
For S = -10 To 10 Step 0.5
 Print S ; Spc(3) ; Round(s) ; Spc(3) ; Fix(s) ; Spc(3) ; Int(s)
Next
End

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