Float2dec

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Syntax

Syntax: float2dec register 1, register 2

  • register 1 = Stores the converted dec value from the float value in register 2.
  • register 2 = Register containing float value to convert to a dec value.

Use

Used to convert float values to dec values between registers.

Example


100:     fleti R2, 4.20389539297445E-44 //Makes register 2 equal 4.20389539297445E-44 float.
         float2dec R1, R2 //Converts the float value of register 2 and stores it as a dec value in register 1. Register 1 now equals 0000001E (30 in dec.)
         ret 

Also see

fleti, ret