Pokémon X and Y Fan Community
July 12, 2020, 01:31:35 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  Home Help Search Arcade Gallery SHOUTBOX Staff List Calendar Members Login Register  

Programming Thread

Pages: 1 2 3 [4] 5 6 ... 12
  Send this topic  |  Print  
Author Topic: Programming Thread  (Read 1023 times)
Global Moderator
Malevolent Murkrow

Level: 44
Offline Offline

Posts: 2977

View Profile
Badges: (View All)
« Reply #45 on: December 04, 2012, 10:08:08 am »

Well, after AS3 being too pro Flashy (IT'S A PUN), I think I'll try out some JavaScript and figure out all this HTML5 business, considering the amount of insanely cool stuff that has been made with it, and it's compatibility with basically everything (if nintendo supports it, most things will).

Also, I made a little python thing to save me a few button clicks on a calculator for my maths homework. It literally just performs pi*r-squared on the radius of a circle.

from math import pi
radius = float(raw_input("RADIUS: "))
answer = pi * radius * radius
print "\n",answer,"\n"
for i in range(1, 6):
x = round(answer, i)
print x, "(%sDP)" % i

It also rounds it to digits up to 5, which is also time saving as it means I won't have to retype it on a calc to figure it out.
Report Spam   Logged
Pages: 1 2 3 [4] 5 6 ... 12
  Send this topic  |  Print  
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
Free SMF Hosting - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy
Page created in 0.066 seconds with 14 queries.