Thread: Math help
View Single Post
  #2  
Unread 03-01-2022, 08:22 AM
Darqwood's Avatar
Darqwood Darqwood is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Aug 2005
Posts: 849
Default

It's worse than that. HealthRange is actually a multi-line string with two values: current health and max health, separated by a CRLF. If you look at the stats sidebar on the Character window for example, current and max health are displayed together in a multi-line label.

You can strip out the current health value with INT(HealthAmount) and it won't have any commas, but manipulating the resulting value is messy. As you get into large current-day health values you may start getting math results in scientific notation. One workaround is to divide the value by 10,000 or 100,000 etc. to get smaller numbers to work with.


.
Reply With Quote