# Convert Real To Text
Grammar — Text(val|Real) with prec decimal places
Flags —Native
|Function
Converts a real value to a text value.
# Arguments
fixed
— Valueint
— Precision
Returns — text
native text FixedToText(fixed x, int precision);
# 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
// L491
FixedToText(PointGetX(lp_point), 2)
// L491
FixedToText(PointGetY(lp_point), 2)
// L4151
FixedToText(Sin(180.0), 2)
// L4152
FixedToText(Sin(90.0), 2)
// L4153
FixedToText(Sin(gv_c_Pai), 2)
// L294
FixedToText(UnitGetPropertyFixed(lp_u, c_unitPropShields, c_unitPropCurrent), 0)
// L296
FixedToText(UnitGetPropertyFixed(lp_u, c_unitPropLife, c_unitPropCurrent), 0)
// L298
FixedToText(UnitGetPropertyFixed(lp_u, c_unitPropEnergy, c_unitPropCurrent), 0)
// L302
FixedToText(PointGetX(UnitGetPosition(lp_u)), 0)
// L304
FixedToText(PointGetY(UnitGetPosition(lp_u)), 0)
// L306
FixedToText(UnitGetFacing(lp_u), 0)
// L4472
FixedToText(gv_sCVHealingPerformedOnOdin, c_fixedPrecisionAny)
// L4487
FixedToText(gv_sCVHealingPerformedOnOdin, 0)
// L474
FixedToText(lv_realCurrent, 0)
// L502
FixedToText(lv_realCurrent, 0)
// L14573
FixedToText(lv_offset, c_fixedPrecisionAny)
// L18970
FixedToText(gv_idleFidgetStartTime, 1)
// L18970
FixedToText(gv_idleFidgetRepeatTime, 1)
// L19117
FixedToText(PointGetX(lv_loc), c_fixedPrecisionAny)
// L19117
FixedToText(PointGetY(lv_loc), c_fixedPrecisionAny)
// L19118
FixedToText(PointGetFacing(lv_loc), c_fixedPrecisionAny)
// L19728
FixedToText(UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynorMarine)), c_fixedPrecisionAny)
// L6130
FixedToText(gv_existingSupplyUpdate, 0)
// L6279
FixedToText(gv_existingSupplyUpdate, 0)
// L6284
FixedToText(100.0, 0)
// L1200
FixedToText(gf_ArtifactChargePercent(), 1)
// L1210
FixedToText(gf_ArtifactChargePercent(), 1)
// L3693
FixedToText(gf_ArtifactChargePercent(), 1)
// L3699
FixedToText(gf_ArtifactChargePercent(), 1)
// L3705
FixedToText(gf_ArtifactChargePercent(), 1)
// L3711
FixedToText(gf_ArtifactChargePercent(), 1)
// L7891
FixedToText(gv_statZeratulLifeRemaining, c_fixedPrecisionAny)
// L491
FixedToText(PointGetX(lp_point), 2)
// L491
FixedToText(PointGetY(lp_point), 2)
// L4151
FixedToText(Sin(180.0), 2)
// L4152
FixedToText(Sin(90.0), 2)
// L4153
FixedToText(Sin(gv_c_Pai), 2)
// L294
FixedToText(UnitGetPropertyFixed(lp_u, c_unitPropShields, c_unitPropCurrent), 0)
// L296
FixedToText(UnitGetPropertyFixed(lp_u, c_unitPropLife, c_unitPropCurrent), 0)
// L298
FixedToText(UnitGetPropertyFixed(lp_u, c_unitPropEnergy, c_unitPropCurrent), 0)
// L302
FixedToText(PointGetX(UnitGetPosition(lp_u)), 0)
// L304
FixedToText(PointGetY(UnitGetPosition(lp_u)), 0)
// L306
FixedToText(UnitGetFacing(lp_u), 0)
// L4472
FixedToText(gv_sCVHealingPerformedOnOdin, c_fixedPrecisionAny)
// L4487
FixedToText(gv_sCVHealingPerformedOnOdin, 0)
// L474
FixedToText(lv_realCurrent, 0)
// L502
FixedToText(lv_realCurrent, 0)
// L14573
FixedToText(lv_offset, c_fixedPrecisionAny)
// L18970
FixedToText(gv_idleFidgetStartTime, 1)
// L18970
FixedToText(gv_idleFidgetRepeatTime, 1)
// L19117
FixedToText(PointGetX(lv_loc), c_fixedPrecisionAny)
// L19117
FixedToText(PointGetY(lv_loc), c_fixedPrecisionAny)
// L19118
FixedToText(PointGetFacing(lv_loc), c_fixedPrecisionAny)
// L19728
FixedToText(UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynorMarine)), c_fixedPrecisionAny)
// L6130
FixedToText(gv_existingSupplyUpdate, 0)
// L6279
FixedToText(gv_existingSupplyUpdate, 0)
// L6284
FixedToText(100.0, 0)
// L1200
FixedToText(gf_ArtifactChargePercent(), 1)
// L1210
FixedToText(gf_ArtifactChargePercent(), 1)
// L3693
FixedToText(gf_ArtifactChargePercent(), 1)
// L3699
FixedToText(gf_ArtifactChargePercent(), 1)
// L3705
FixedToText(gf_ArtifactChargePercent(), 1)
// L3711
FixedToText(gf_ArtifactChargePercent(), 1)
// L7891
FixedToText(gv_statZeratulLifeRemaining, c_fixedPrecisionAny)
// L3844
FixedToText(gf_CreepPercent(), 1)
// L1657
FixedToText(PointGetX(UnitGetPosition(autoA9E1CE21_var)), 1)
// L1658
FixedToText(PointGetY(UnitGetPosition(autoA9E1CE21_var)), 1)
// L1160
FixedToText(PointGetX(UnitGetPosition(auto40B40B33_var)), 1)
// L1161
FixedToText(PointGetY(UnitGetPosition(auto40B40B33_var)), 1)
// L4231
FixedToText(gv_totalHyperionDamage, 0)
// L10375
FixedToText(gv_damageTakenFromArchangelAmount, 0)
// L5502
FixedToText(gv_totalMagMineDamageTaken, 0)
// L5503
FixedToText(gv_totalDamageTaken, 0)
// L6870
FixedToText(FixedToInt((gv_kerriganLowestLife/UnitGetPropertyFixed(gv_kerrigan, c_unitPropLifeMax, c_unitPropCurrent)*100)), 0)
// L4620
FixedToText(gv_totalChrysalisDamageTaken, 0)
// L9036
FixedToText(gv_kerriganLowestLife, 0)
// L3844
FixedToText(gf_CreepPercent(), 1)
// L1657
FixedToText(PointGetX(UnitGetPosition(autoA9E1CE21_var)), 1)
// L1658
FixedToText(PointGetY(UnitGetPosition(autoA9E1CE21_var)), 1)
// L1160
FixedToText(PointGetX(UnitGetPosition(auto40B40B33_var)), 1)
// L1161
FixedToText(PointGetY(UnitGetPosition(auto40B40B33_var)), 1)
// L4231
FixedToText(gv_totalHyperionDamage, 0)
// L10375
FixedToText(gv_damageTakenFromArchangelAmount, 0)
// L5502
FixedToText(gv_totalMagMineDamageTaken, 0)
// L5503
FixedToText(gv_totalDamageTaken, 0)
// L6870
FixedToText(FixedToInt((gv_kerriganLowestLife/UnitGetPropertyFixed(gv_kerrigan, c_unitPropLifeMax, c_unitPropCurrent)*100)), 0)
// L4620
FixedToText(gv_totalChrysalisDamageTaken, 0)
// L9036
FixedToText(gv_kerriganLowestLife, 0)
# campaigns/swarmstory.sc2campaign
// L3257
FixedToText(UnitGetPropertyFixed(libSwaC_gv_zS_SwarmHeroUIUnit[lp_index], c_unitPropLife, c_unitPropCurrent), 0)
// L3258
FixedToText(UnitGetPropertyFixed(libSwaC_gv_zS_SwarmHeroUIUnit[lp_index], c_unitPropLifeMax, c_unitPropCurrent), 0)
// L3268
FixedToText(UnitGetPropertyFixed(libSwaC_gv_zS_SwarmHeroUIUnit[lp_index], c_unitPropEnergy, c_unitPropCurrent), 0)
// L3269
FixedToText(UnitGetPropertyFixed(libSwaC_gv_zS_SwarmHeroUIUnit[lp_index], c_unitPropEnergyMax, c_unitPropCurrent), 0)
// L11703
FixedToText(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "LifeMax", 1)), 0)
// L11704
FixedToText(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "EnergyMax", 1)), 0)
// L11705
FixedToText(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogUnit, "K5Kerrigan", "LifeArmor", 1)), 0)
// L11706
FixedToText(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogEffect, "ChainReaction1Damage", "Amount", 1)), 0)
# campaigns/void.sc2campaign
// L5864
FixedToText((100.0 - ((gf_CreepPercent() / gv_startingCreepCoverage) * 100)), 1)
// L3388
FixedToText(gv_shieldsRechargedByShieldBatteries, 0)
// L8980
FixedToText(gv_vorazunDamageTaken, 0)
// L1824
FixedToText(gf_KeystoneChargePercent(), 1)