Delta-electronics DELTA DUP-B Uživatelský manuál Strana 363

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 491
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 362
Chapter 3 Creating and Editing Screens
FCNV (Convert Integer to Floating Point Value)
Equation
Var1 = FCNV (Var2)
Explanation
Convert an integer in Var2 to floating point value and store in Var1.
Remark
The calculation result can be stored as signed DWORD.
Var1 can be internal memory only. Var2 can be internal memory or constant.
Example
Convert an integer in $0 to floating point value and store in $2 (this is an operation
of signed 32-bit data).
If $0 = 100, $2 = 100.0 after executing FCNV command.
ICNV (Convert Floating Point Value to Integer)
Equation
Var1 = ICNV (Var2)
Explanation
Convert a floating point value in Var2 to an integer and store in Var1.
Remark
The calculation result can be stored as signed DWORD.
Var1 can be internal memory only. Var2 can be internal memory or constant.
Example
Convert a floating point value in $0 to an integer and store in $2 (this is an operation
of signed 32-bit data).
3-342 Revision May, 2010
Zobrazit stránku 362
1 2 ... 358 359 360 361 362 363 364 365 366 367 368 ... 490 491

Komentáře k této Příručce

Žádné komentáře