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 » Scripting Helpers
Home Search
 

Re: Very strange output with simple command..

Previous Thread :: Next Thread 
zub74 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
31 May 2014 12:18 PM
for i=1,0, -0.1 do
print(i)
end

Was testing that out for a script to lower transparency, but instead of ending with 0, it ended with 1.3877787807814e-016. Any particular reason?
Report Abuse
zub74 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
31 May 2014 12:23 PM
Same thing happens with
local i = 1
while i > 0 do
print(i.." > 0")
i = i - 0.1
end
print (i.." = 0")

Why?
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
31 May 2014 12:24 PM
for i=1,0, -0.1 do
print(i)
wait(1)
end
Report Abuse
zub74 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
31 May 2014 12:25 PM
Throwing in a wait does the same thing.
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
31 May 2014 12:27 PM
Your studio is wierd then
Mine works
Report Abuse
zub74 is not online. zub74
Joined: 13 Sep 2008
Total Posts: 489
31 May 2014 12:33 PM
Suppose it doesn't really matter
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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