# Convert Integer To Real
Grammar — Real(val|Integer)
Flags —Native
|Function
Converts an integer into a real value.
# Arguments
int
— Value
Returns — fixed
native fixed IntToFixed(int x);
# Related
Category: Conversion / Basic Conversions
- [F] —
text
— Convert String To Text — ( StringToText ) - [F] —
string
— Convert Game Link To String — ( ) - [F] —
string
[ gamelink ] — Convert String To Game Link — ( ) - [F] —
string
[ catalogentry ] — Convert String To Catalog Entry — ( ) - [F] —
string
[ reference ] — Convert String To Catalog Reference — ( ) - [F] —
string
[ catalogfieldname ] — Convert String To Catalog Field Name — ( ) - [F] —
string
[ catalogfieldpath ] — Convert String To Catalog Field Path — ( ) - [F] —
string
[ catalogscope ] — Convert String To Catalog Scope — ( ) - [F] —
string
— Convert Catalog Entry To String — ( ) - [F] —
string
— Convert Catalog Reference To String — ( ) - [F] —
string
[ reference ] — Convert Catalog Reference (Any -> Numeric) — ( ) - [F] —
string
[ reference ] — Convert Catalog Reference (Any -> Upgrade) — ( ) - [F] —
string
[ reference ] — Convert Catalog Reference (Upgrade -> Any) — ( ) - [F] —
string
[ reference ] — Convert Catalog Reference (Numeric -> Any) — ( ) - [F] —
string
— Convert Catalog Field Name To String — ( ) - [F] —
string
— Convert Catalog Field Path To String — ( ) - [F] —
string
— Convert Catalog Scope To String — ( ) - [F] —
string
[ filepath ] — Convert String To Image File — ( ) - [F] —
string
[ filepath ] — Convert String To Movie File — ( ) - [F] —
string
[ filepath ] — Convert String To Cutscene File — ( ) - [F] —
string
— Convert Conversation State Index To String — ( ) - [F] —
string
[ convstateindex ] — Convert String To Conversation State Index — ( ) - [F] —
string
— Convert User Data Instance To String — ( ) - [F] —
string
[ userinstance ] — Convert String To User Data Instance — ( ) - [F] —
fixed
— Convert String To Real — ( StringToFixed ) - [F] —
int
— Convert String To Integer — ( StringToInt ) - [F] —
abilcmd
— Convert String To Ability Command — ( StringToAbilCmd ) - [F] —
text
— Convert Real To Text — ( FixedToText ) - [F] —
text
— Convert Real To Text (Advanced) — ( FixedToTextAdvanced ) - [F] —
string
— Convert Real To String — ( FixedToString ) - [F] —
int
— Convert Real To Integer — ( FixedToInt ) - [F] —
text
— Convert Integer To Text — ( IntToText ) - [F] —
string
— Convert Integer To String — ( IntToString ) - [F] —
fixed
— Convert Integer To Real — ( IntToFixed ) - [F] —
text
— Convert Boolean To Text — ( libNtve_gf_ConvertBooleanToText ) - [F] —
int
— Convert Boolean To Integer — ( BoolToInt ) - [F] —
string
— Convert Boolean To String — ( libNtve_gf_ConvertBooleanToString ) - [F] —
bool
— Convert String To Boolean — ( libNtve_gf_ConvertStringToBoolean ) - [F] —
string
— Convert Point To String — ( libNtve_gf_ConvertPointToString ) - [F] —
point
— Convert String To Point — ( libNtve_gf_ConvertStringToPoint ) - [F] —
string
— Convert Image To String — ( ) - [F] —
int
— Convert Game User To Integer — ( ) - [F] —
text
— Format Number — ( FormatNumber ) - [F] —
text
— Format Duration — ( FormatDuration )
# Examples
# campaigns/liberty.sc2campaign
// L663
IntToFixed(lv_index)
// L1279
IntToFixed(lv_index)
// L1292
IntToFixed(lv_index)
// L3372
IntToFixed(lp_points)
// L3372
IntToFixed(gv_repeatTimes)
// L3492
IntToFixed((lv_shotDownTotal * 100))
// L3492
IntToFixed(gv_levelTotalEnemy)
// L3526
IntToFixed((lv_pickupTotal * 100))
// L3526
IntToFixed(gv_levelTotalPowerups)
// L4842
IntToFixed(lv_deadInterceptorCount)
// L2500
IntToFixed((lv_customIntValueOfUnit - 1))
// L2507
IntToFixed((lv_customIntValueOfUnit - 1))
// L1750
IntToFixed(gv_spawnCooldown)
// L1836
IntToFixed(lv_i)
// L327
IntToFixed(lp_count)
// L362
IntToFixed(lp_colonyIndex)
// L632
IntToFixed(lp_colonyIndex)
// L796
IntToFixed((lp_type))
// L798
IntToFixed(lp_colonyIndex)
// L1510
IntToFixed(lv_colonyIndex)
// L571
IntToFixed(lv_currentTarget)
// L600
IntToFixed(lv_currentTarget)
// L1922
IntToFixed(lv_initialCustomValue)
// L1931
IntToFixed(gv_trainList[lv_trainsToSpawn[lv_i]].lv_numberOfCars)
// L1931
IntToFixed(lv_currentCar)
// L5916
IntToFixed(lv_i)
// L1363
IntToFixed(gv_mERC_CONTRACT_PRICE)
// L1369
IntToFixed(gv_mERC_CONTRACT_PRICE)
// L1371
IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))
// L1372
IntToFixed(gv_oRLANS_MINERAL_COUNT)
// L1407
IntToFixed(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))
// L1408
IntToFixed(gv_oRLANS_MINERAL_COUNT)
// L4012
IntToFixed(gv_oRLANS_MINERAL_COUNT)
// L4012
IntToFixed(gv_mERC_CONTRACT_PRICE)
// L4058
IntToFixed(gv_oRLANS_MINERAL_COUNT)
// L4058
IntToFixed(gv_mERC_CONTRACT_PRICE)
// L472
IntToFixed(gv_transmissionProgress[lp_index])
// L5055
IntToFixed(lv_i)
// L5056
IntToFixed(lv_i)
// L2443
IntToFixed((lp_room))
// L2475
IntToFixed(gf_GetUnitClickableLockCount(lp_unit))
// L2478
IntToFixed(lp_lock)
// L2481
IntToFixed(lp_lock)
// L2484
IntToFixed(lp_lock)
// L4882
IntToFixed(gv_debug_BriefingMissioniButtonX)
// L4883
IntToFixed(gv_debug_BriefingMissioniButtonY)
// L4966
IntToFixed((gv_debug_BriefingMissioniButtonY + 2))
// L4981
IntToFixed(gv_debug_TVNewsMissioniButtonX)
// L4982
IntToFixed(gv_debug_TVNewsMissioniButtonY)
// L325
IntToFixed(lv_targetTerrazineIndex)
// L326
IntToFixed(lp_secondaryRegionSearchIndex)
// L334
IntToFixed(lv_escortCount)
// L338
IntToFixed(lv_i)
// L348
IntToFixed(lv_escortCount)
// L352
IntToFixed(lv_i)
// L362
IntToFixed(lv_escortCount)
// L366
IntToFixed(lv_i)
// L369
IntToFixed(lv_escortCount)
// L373
IntToFixed(lv_i)
// L225
IntToFixed(lv_i)
// L4717
IntToFixed(lv_i)
// L4720
IntToFixed(lv_i)
// L2366
IntToFixed(lv_i)
// L2367
IntToFixed(lv_i)
// L3192
IntToFixed((lv_arrivalTime - lv_lingerTime))
// L5500
IntToFixed(lv_i)
// L5500
IntToFixed(UnitGroupCount(lv_infantryGroup, c_unitCountAlive))
// L2731
IntToFixed(gf_CountTargetsOfCurrentStage())
// L236
IntToFixed(lp_count)
// L1132
IntToFixed(lv_i)
// L2438
IntToFixed(UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_ScriptedTOSS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(autoDAD5E4FA_var), 2.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterRawResource) | (1 << c_targetFilterMissile) | (1 << c_targetFilterDestructible), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)) | (1 << (c_targetFilterBenign - 32))), 0), c_unitCountAlive))
// L690
IntToFixed(gv_bDPSpeed)
// L694
IntToFixed(gv_bDPSpeed)
// L3005
IntToFixed(lv_speed)
// L3006
IntToFixed(lv_speed)
// L6280
IntToFixed(gv_obejctiveTroopsSupplyTotal)
// L5756
IntToFixed(RandomInt(4, 6))
// L762
IntToFixed(lv_i)
// L653
IntToFixed(lv_i)
// L3508
IntToFixed(gv_kerriganEscortNumber)
// L3508
IntToFixed(lv_i)
// L457
IntToFixed(lv_count)
// L5949
IntToFixed(auto59554051_var)
// L1807
IntToFixed(lv_targetCount)
// L1880
IntToFixed(lv_targetCount)
// L2070
IntToFixed(lv_wAITTime)
// L2080
IntToFixed(lv_wAITTime)
// L2092
IntToFixed(lv_wAITTime)
// L2108
IntToFixed(lv_wAITTime)
// L2120
IntToFixed(lv_wAITTime)
// L2169
IntToFixed(lv_wAITTime)
// L2179
IntToFixed(lv_wAITTime)
// L2187
IntToFixed(lv_wAITTime)
// L2219
IntToFixed(lv_wAITTime)
// L2237
IntToFixed(lv_wAITTime)
// L663
IntToFixed(lv_index)
// L1279
IntToFixed(lv_index)
// L1292
IntToFixed(lv_index)
// L3372
IntToFixed(lp_points)
// L3372
IntToFixed(gv_repeatTimes)