# Convert Real To String

Grammar — String(val|Real) with prec decimal places
FlagsNative | Function

Converts a real value to a string value.

# Arguments

  • fixed — Value
  • int — Precision

Returns — string

native string FixedToString(fixed x, int precision);

Category: Conversion / Basic Conversions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L1261
FixedToString(TimerGetRemaining(gv_leviathanDeathWindow), c_fixedPrecisionAny)
// L1261
FixedToString(TimerGetRemaining(gv_leviathanDeathWindow), c_fixedPrecisionAny)
// L1780
FixedToString(lv_tugofWarBarPercent, c_fixedPrecisionAny)
// L2993
FixedToString(gv_psifieldradius, c_fixedPrecisionAny)
// L2998
FixedToString(0.0, c_fixedPrecisionAny)
// L3282
FixedToString(gv_psifieldradius, c_fixedPrecisionAny)
// L2159
FixedToString(lv_hatcheryBuildTime, c_fixedPrecisionAny)
// L1086
FixedToString(libHots_gf_DifficultyValueFixed2(25.0, 25.0, 50.0), c_fixedPrecisionAny)
// L1780
FixedToString(lv_tugofWarBarPercent, c_fixedPrecisionAny)
// L2993
FixedToString(gv_psifieldradius, c_fixedPrecisionAny)
// L2998
FixedToString(0.0, c_fixedPrecisionAny)
// L3282
FixedToString(gv_psifieldradius, c_fixedPrecisionAny)
// L2159
FixedToString(lv_hatcheryBuildTime, c_fixedPrecisionAny)
// L1086
FixedToString(libHots_gf_DifficultyValueFixed2(25.0, 25.0, 50.0), c_fixedPrecisionAny)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L14542
FixedToString(PointGetX(CameraInfoGetTarget(lp_camera)), c_fixedPrecisionAny)
// L14542
FixedToString(PointGetY(CameraInfoGetTarget(lp_camera)), c_fixedPrecisionAny)
// L14542
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValuePitch), c_fixedPrecisionAny)
// L14542
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValueDepthOfField), c_fixedPrecisionAny)
// L14542
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValueDistance), c_fixedPrecisionAny)
// L14543
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValueFalloffEnd), c_fixedPrecisionAny)
// L14543
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValueFalloffStart), c_fixedPrecisionAny)
// L14543
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValueFarClip), c_fixedPrecisionAny)
// L14543
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValueFieldOfView), c_fixedPrecisionAny)
// L14543
FixedToString(CameraInfoGetValue(lp_camera, c_cameraValueFocalDepth), c_fixedPrecisionAny)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1500
FixedToString(lp_reticleScale, c_fixedPrecisionAny)
// L1532
FixedToString(lp_reticleScale, c_fixedPrecisionAny)
// L1500
FixedToString(lp_reticleScale, c_fixedPrecisionAny)
// L1532
FixedToString(lp_reticleScale, c_fixedPrecisionAny)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L6587
FixedToString(lv_rotationAmount, c_fixedPrecisionAny)

# mods/core.sc2mod

NativeLib.galaxy

// L528
FixedToString(lp_blendTime, c_fixedPrecisionAny)
// L540
FixedToString(lp_blendTime, c_fixedPrecisionAny)
// L546
FixedToString(lp_blendTime, c_fixedPrecisionAny)
// L570
FixedToString(lp_percent, c_fixedPrecisionAny)
// L576
FixedToString(lp_duration, c_fixedPrecisionAny)
// L593
FixedToString(lp_time, c_fixedPrecisionAny)
// L599
FixedToString(lp_scale, c_fixedPrecisionAny)
// L605
FixedToString(lp_value, c_fixedPrecisionAny)
// L635
FixedToString(lp_rotation, c_fixedPrecisionAny)
// L707
FixedToString(lp_value, c_fixedPrecisionAny)
// L411
FixedToString(lp_blendTime, c_fixedPrecisionAny)
// L423
FixedToString(lp_blendTime, c_fixedPrecisionAny)
// L429
FixedToString(lp_blendTime, c_fixedPrecisionAny)
// L453
FixedToString(lp_percent, c_fixedPrecisionAny)
// L459
FixedToString(lp_duration, c_fixedPrecisionAny)
// L476
FixedToString(lp_time, c_fixedPrecisionAny)
// L482
FixedToString(lp_scale, c_fixedPrecisionAny)
// L488
FixedToString(lp_value, c_fixedPrecisionAny)
// L518
FixedToString(lp_rotation, c_fixedPrecisionAny)
// L596
FixedToString(lp_value, c_fixedPrecisionAny)

# mods/frontiers.sc2mod

Lib6CB3363F.galaxy

// L480
FixedToString(lib6CB3363F_gv_fT_PlayerSpeedTotal[lv_i], c_fixedPrecisionAny)
// L573
FixedToString((lib6CB3363F_gv_fT_PlayerSpeedTotal[lp_playerFiring] * lib6CB3363F_gv_fT_WeaponSpeedModMultiplier[lp_gunType]), c_fixedPrecisionAny)
// L982
FixedToString(lib6CB3363F_gv_fT_PlayerSpeedTotal[lv_i], c_fixedPrecisionAny)

# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod

LibAMVS.galaxy

// L2980
FixedToString(libAMVS_gv_saZo.lv_currentDamage, c_fixedPrecisionAny)
// L2981
FixedToString(libAMVS_gv_saZo.lv_currentDamage, c_fixedPrecisionAny)
// L3123
FixedToString(libAMVS_gv_saZo.lv_currentDamage, c_fixedPrecisionAny)
// L3124
FixedToString(libAMVS_gv_saZo.lv_currentDamage, c_fixedPrecisionAny)

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L713
FixedToString((CatalogFieldValueGetAsFixed(c_gameCatalogAbil, "DiabloShadowCharge", "Range", 0) * CatalogFieldValueGetAsFixed(c_gameCatalogTalent, "DiabloMasteryFromTheShadowsShadowCharge", "AbilityModificationArray[" + IntToString(0) + "].Modifications[" + IntToString(0) + "].Value", 0)), c_fixedPrecisionAny)
// L4735
FixedToString(1.0, 0)
// L4736
FixedToString(30.0, 0)
// L4737
FixedToString(30.0, 0)
// L5583
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L5584
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L5585
FixedToString(150.0, c_fixedPrecisionAny)
// L5586
FixedToString(150.0, c_fixedPrecisionAny)
// L5588
FixedToString(libPVEM_gf_PvEDifficultyValueReal(lv_minionDmg, (lv_minionDmg * libPEB1_gv_hardMinionDamageBonus)), c_fixedPrecisionAny)
// L5590
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L2600
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L2601
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L2602
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L2603
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L2605
FixedToString(libPVEB_gf_PVEDifficultyValueReal(lv_minionDmg, (lv_minionDmg * lv_hardMinionDamageBonus)), c_fixedPrecisionAny)
// L2607
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L2608
FixedToString(lv_minionHP, c_fixedPrecisionAny)
// L2610
FixedToString(libPVEB_gf_PVEDifficultyValueReal(lv_minionDmg, (lv_minionDmg * lv_hardMinionDamageBonus)), c_fixedPrecisionAny)
// L2611
FixedToString(libPVEB_gf_PVEDifficultyValueReal(lv_minionDmg, (lv_minionDmg * lv_hardMinionDamageBonus)), c_fixedPrecisionAny)
// L2613
FixedToString(lv_minionHP, c_fixedPrecisionAny)

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod

LibPVEB.galaxy

// L617
FixedToString((StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, libPVEB_gv_pBNPCHeroes[lv_index].lv_unitType, "Radius", libCore_gv_cOMPUTER_Neutral)) * libPVEB_gv_pBNPCHeroResizeRatio), c_fixedPrecisionAny)
// L618
FixedToString((StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, libPVEB_gv_pBNPCHeroes[lv_index].lv_unitType, "InnerRadius", libCore_gv_cOMPUTER_Neutral)) * libPVEB_gv_pBNPCHeroResizeRatio), c_fixedPrecisionAny)

# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod

LibPVEM.galaxy

// L824
FixedToString((StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, libPVEM_gv_pvENPCHeroes[lv_index].lv_unitType, "Radius", libCore_gv_cOMPUTER_Neutral)) * libPVEM_gv_pvENPCHeroResizeRatio), c_fixedPrecisionAny)
// L825
FixedToString((StringToFixed(CatalogFieldValueGet(c_gameCatalogUnit, libPVEM_gv_pvENPCHeroes[lv_index].lv_unitType, "InnerRadius", libCore_gv_cOMPUTER_Neutral)) * libPVEM_gv_pvENPCHeroResizeRatio), c_fixedPrecisionAny)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L4077
FixedToString((libGDHL_gv_heroUtherBlessedChampionStoredHealing[lp_player][1] + libGDHL_gv_heroUtherBlessedChampionStoredHealing[lp_player][2]), 2)
// L23077
FixedToString(lv_offsetValue, 2)
// L23079
FixedToString(lv_firinMahLazorzOffsetValue, 2)
// L23080
FixedToString(lv_firinMahLazorzOffsetValue, 2)
// L23082
FixedToString((-4.25 - (IntToFixed(lv_stacks) / 2.6)), 2)
// L24190
FixedToString((lv_damageDealt * lv_damageScale), c_fixedPrecisionAny)
// L25568
FixedToString(lv_finalScore, c_fixedPrecisionAny)

# mods/heroesdata.stormmod

GameLib.galaxy

// L5841
FixedToString(lv_yOffsetReal, 2)
// L5974
FixedToString(lv_yOffsetReal, 2)

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L2613
FixedToString(lv_loopsElapsed, 0)
// L2616
FixedToString(lv_loopsElapsed, 0)
// L2622
FixedToString(lv_secondsElapsed, 0)
// L2625
FixedToString(lv_secondsElapsed, 0)
// L2630
FixedToString(lv_minutesElapsed, 0)
// L2633
FixedToString(lv_minutesElapsed, 0)

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L736
FixedToString(libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataMinimapIconScale, c_fixedPrecisionAny)
// L1270
FixedToString(libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataMinimapIconScale, c_fixedPrecisionAny)
// L1391
FixedToString(libMapM_gv_jungleCreepCamps[lp_camp].lv_mapDataMinimapIconScale, c_fixedPrecisionAny)

# mods/heroesdata.stormmod

SupportLib.galaxy

// L3910
FixedToString(lv_defaultCameraAngle, c_fixedPrecisionAny)

# mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmod

LibMMAP.galaxy

// L1955
FixedToString((libMMAP_gv_heroTimeToCap_C / lv_captureMacguffinPeriodCount), c_fixedPrecisionAny)