|
| 08 Apr 2015 10:01 PM |
How could this be convert this into a percentage out of 100? The numbers go way to high.
while game.ContentProvider.RequestQueueSize > 0 and Skip.Value == false do LoadingBar.Parent.Visible = true LoadingBar.Size = UDim2.new(game.ContentProvider.RequestQueueSize,0,1,0) TextAssets.Text = "Loading assets..."..tostring(('%.f'):format((game.ContentProvider.RequestQueueSize)*100)).."%" wait() end |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 08 Apr 2015 10:16 PM |
| Are you asking how to make something out of 100? You take the actual number divided by the total number, and then set that equal to the X in the GUI. So if you needed to make a loading bar, you would take the total number of things loaded (I think in this case it's the assets?) and put that under the amount that's actually loaded. I'm not sure if that's what you want or not though. Sorry if I'm wrong. |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2015 10:28 PM |
current/total * 100
i had 25 out of 50 marks on that exam paper yesterday [insert name here]
25/50 = 0.5 0.5*100 = 50%
no problem
Join Skelecore | Clan of magic and wizardry ᵔᴥᵔ |
|
|
| Report Abuse |
|
|
vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
| |
|
|
| 09 Apr 2015 07:10 AM |
Vat, you only multiplied by 10, it shouild be 42.8%
Join Skelecore | Clan of magic and wizardry ᵔᴥᵔ |
|
|
| Report Abuse |
|
|
vat21s
|
  |
| Joined: 07 Jun 2010 |
| Total Posts: 2508 |
|
|
| 09 Apr 2015 09:23 AM |
2 Zeros = one Hundred Let me reword it 1*10^2 or 1100100 or even 0x64
|
|
|
| Report Abuse |
|
|