RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[SOLVED] Scripting maths

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 81
Monster Hunter
i've got this in yanfly's display aftermath script and it shows the experience percentage , now it is showing 0.00000
VA_PERCENT_EXP  = "%#.05g%%"

what i want is : 0.00 or 100.00 (for if it's a 100 percent)

could any one help me with this? i suck at scripting maths o_O
« Last Edit: July 16, 2010, 10:39:07 PM by Mitsarugi »

*****
Rep:
Level 84
This text is way too personal.
Bronze - GIAW 11 (Hard)Silver - GIAW Halloween
Do you want it to be 2 decimal places all the time or only when it's at 100 percent?

If you want it to be 2 decimal places all of the time, just use VA_PERCENT_EXP  = "%#0.2f%%" .

***
Rep:
Level 81
Monster Hunter
Do you want it to be 2 decimal places all the time or only when it's at 100 percent?

If you want it to be 2 decimal places all of the time, just use VA_PERCENT_EXP  = "%#0.2f%%" .
Thanks cozziekuns  it works ^^