generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Percentage..

Previous Thread :: Next Thread 
BloodLitch101 is not online. BloodLitch101
Joined: 13 Jul 2011
Total Posts: 941
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 is not online. 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
SkeletalOrigin is not online. SkeletalOrigin
Joined: 16 Aug 2012
Total Posts: 8359
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 is not online. vat21s
Joined: 07 Jun 2010
Total Posts: 2508
08 Apr 2015 10:29 PM
3/7*100 = ~4.28%
Report Abuse
SkeletalOrigin is not online. SkeletalOrigin
Joined: 16 Aug 2012
Total Posts: 8359
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image