# Convert Real To Text (Advanced)
Grammar — Text(val|Real) with style decimal places (groupNumbers|Do/Do Not use delimiters, precision limits: minPrecision|Minimum to maxPrecision|Maximum)
Flags —Native
|Function
Converts a real value of a specified formatting style to a text value.
# Arguments
fixed
— Valueint
<preset::FormatNumberStyle> — Precisionbool
<preset::Do_Do_Not_Option> — Delimitersint
— Minimum Precisionint
— Maximum Precision
Returns — text
native text FixedToTextAdvanced(
fixed inNumber,
int inStyle,
bool inGroup,
int inMinDigits,
int inMaxDigits,
);
# Related
Category: Conversion / Basic Conversions
- Convert String To Text —
text
— StringToText - Convert Game Link To String
- Convert String To Game Link
- Convert String To Catalog Entry
- Convert String To Catalog Reference
- Convert String To Catalog Field Name
- Convert String To Catalog Field Path
- Convert String To Catalog Scope
- Convert Catalog Entry To String
- Convert Catalog Reference To String
- Convert Catalog Reference (Any -> Numeric)
- Convert Catalog Reference (Any -> Upgrade)
- Convert Catalog Reference (Upgrade -> Any)
- Convert Catalog Reference (Numeric -> Any)
- Convert Catalog Field Name To String
- Convert Catalog Field Path To String
- Convert Catalog Scope To String
- Convert String To Image File
- Convert String To Movie File
- Convert String To Cutscene File
- Convert Conversation State Index To String
- Convert String To Conversation State Index
- Convert User Data Instance To String
- Convert String To User Data Instance
- Convert String To Real —
fixed
— StringToFixed - Convert String To Integer —
int
— StringToInt - Convert String To Ability Command —
abilcmd
— StringToAbilCmd - Convert Real To Text —
text
— FixedToText - Convert Real To Text (Advanced) —
text
— FixedToTextAdvanced - Convert Real To String —
string
— FixedToString - Convert Real To Integer —
int
— FixedToInt - Convert Integer To Text —
text
— IntToText - Convert Integer To String —
string
— IntToString - Convert Integer To Real —
fixed
— IntToFixed - Convert Boolean To Text —
text
— libNtve_gf_ConvertBooleanToText - Convert Boolean To Integer —
int
— BoolToInt - Convert Boolean To String —
string
— libNtve_gf_ConvertBooleanToString - Convert String To Boolean —
bool
— libNtve_gf_ConvertStringToBoolean - Convert Point To String —
string
— libNtve_gf_ConvertPointToString - Convert String To Point —
point
— libNtve_gf_ConvertStringToPoint - Convert Image To String
- Convert Game User To Integer
- Format Number —
text
— FormatNumber - Format Duration —
text
— FormatDuration
# Examples
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:1303
else {
lv_dPSTotal = (gv_targetDummyDamageTotal / TimerGetElapsed(gv_targetDummyAnyDummyInCombatTimer));
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDPSLabel, FixedToTextAdvanced(lv_dPSTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDamageLabel, FixedToTextAdvanced(gv_targetDummyDamageTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:1305
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDPSLabel, FixedToTextAdvanced(lv_dPSTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDamageLabel, FixedToTextAdvanced(gv_targetDummyDamageTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDPSLastSecondLabel, FormatNumber(FixedToInt(gv_targetDummyDamageLastSecond)), PlayerGroupAll());
gf_TryMeModePanelShowHide2(true);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2387
TimerStart(gv_healingDummyResetTimer, c_timerDurationInfinite, false, c_timeGame);
gv_healingDummyResetTimerStarted = true;
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHealingLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
if ((TimerGetElapsed(gv_healingDummyHealingTimer) == 0)) {
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHPSLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2389
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHealingLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
if ((TimerGetElapsed(gv_healingDummyHealingTimer) == 0)) {
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHPSLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
else {
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2392
}
else {
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHPSLabel, FixedToTextAdvanced((lv_currentAmountHealed / TimerGetElapsed(gv_healingDummyHealingTimer)), c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
gf_TryMeModePanelShowHide3(true);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:1303
else {
lv_dPSTotal = (gv_targetDummyDamageTotal / TimerGetElapsed(gv_targetDummyAnyDummyInCombatTimer));
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDPSLabel, FixedToTextAdvanced(lv_dPSTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDamageLabel, FixedToTextAdvanced(gv_targetDummyDamageTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:1305
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDPSLabel, FixedToTextAdvanced(lv_dPSTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDamageLabel, FixedToTextAdvanced(gv_targetDummyDamageTotal, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyDPSLastSecondLabel, FormatNumber(FixedToInt(gv_targetDummyDamageLastSecond)), PlayerGroupAll());
gf_TryMeModePanelShowHide2(true);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2387
TimerStart(gv_healingDummyResetTimer, c_timerDurationInfinite, false, c_timeGame);
gv_healingDummyResetTimerStarted = true;
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHealingLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
if ((TimerGetElapsed(gv_healingDummyHealingTimer) == 0)) {
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHPSLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2389
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHealingLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
if ((TimerGetElapsed(gv_healingDummyHealingTimer) == 0)) {
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHPSLabel, FixedToTextAdvanced(lv_currentAmountHealed, c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
else {
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2392
}
else {
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_dummyHPSLabel, FixedToTextAdvanced((lv_currentAmountHealed / TimerGetElapsed(gv_healingDummyHealingTimer)), c_formatNumberStyleNormal, true, 1, 1), PlayerGroupAll());
}
gf_TryMeModePanelShowHide3(true);