[IMG]http://i.imgur.com/nfwmvXy.gif[/IMG]
Holy fuck that is some insane shit. Just type [B]!gcalc[/B] to open it.
[B]Features:[/B]
- All you would expect a shitty dollar store calculator to do.
- Math is almost guaranteed to be correct.
- Works in almost all gamemodes.
- Move it around and it remembers it's last position. Keeps itself out of the way!
- It was a great way to practice lua.
- Error checking. No more errors!
- A memory function! Almost useless!
- [B]NEW:[/B] Added a percentage function.
- [B]NEW:[/B] Now on the Workshop!
- [B]NEW:[/B] A help function! Don't know how to use a calculator? Just type [B]!gcalchelp[/B] to find out how!
[B]Installation:[/B]
Un-zip to your addons folder.
[B]Github:[/B]
[url]https://github.com/FearlessCaptain/Gcalc[/url]
Thanks to Velkon for the improved chat command.
[B]Download:[/B]
[URL="https://github.com/FearlessCaptain/Gcalc/archive/master.zip"]Lastest on github[/URL]
[B]Workshop:[/B]
[URL="https://github.com/FearlessCaptain/Gcalc/archive/master.zip"]Lastest on Workshop[/URL]
[B]Changelog:[/B]
[B]5/13/2016:[/B]
- Added help menu. Type !gcalchelp to view it.
- Replaced Pi function with percentage calculator.
- Fixed a bug with the MR- function. Not that anyone would have noticed. :v:
[B]11/1/2015:[/B]
Start of log:
- Added power button
- Added Pi button
- Added Square root button
- Tweaked UI
- Fixed bug where it was possible to open gcalc on everyone's screen at once. That's what I get testing locally only. :v:
What happens if I divide somethings by 0 with this calculator :v:?
[QUOTE=CaptainFaggot;48972814]
- Math is [b]almost[/b] guaranteed to be correct.
[/QUOTE]
Why almost?
[QUOTE=Ott;48973765]Floating-point precision errors.[/QUOTE]
That's typical of all calculators, though. Saying "almost" makes me think I'm gonna randomly get flagrantly wrong results sometimes :v:
[QUOTE=Gedo789;48973673]What happens if I divide somethings by 0 with this calculator :v:?[/QUOTE]
It handles it. Lua does everything like that for you so it makes it easy. I haven't found any way to fuck it up but if you try hard enough you might.
1. Attempt number one.
[IMG]http://facepunch.gedo789.fr.nf/img/fp_failed1.png[/IMG]
[IMG]http://facepunch.gedo789.fr.nf/img/fp_failed2.png[/IMG]
:surrender:
2. Attempt number two.
[t]http://facepunch.gedo789.fr.nf/img/fp_success1.png[/t]
[t]http://facepunch.gedo789.fr.nf/img/fp_success2.png[/t]
I WON! :joy::joy:
[QUOTE=Gedo789;48975384]-snip-[/QUOTE]
You win.
Use tonumber() to fix it.
[QUOTE=CoreWaffle;48977224]Use tonumber() to fix it.[/QUOTE]
Thanks. I was using getfloat() but I that wasn't good enough. I also added some error checking when ever it does an operation and sets that value too 0 when there is an invalid value.
Normally default derma looks boring but it really suits this :v:
Nice work!
WOW! IT'S A FUCKING CALCULATOR.
I ALWAYS WANTED A CALCULATOR. :')
This is the most glorious day of my life.
CaptainFaggot, if you'd allow it, I'd love to contact my friend, B. Gates, he's looking for a new ambitious soul to sponsor.
You've got potential son. Bright future ahead of you.
All jokes aside, good job. :P Good way to practice and you presented the thread in a hilarious way, made my night. :D
This addon, needs a bit of fixing, if you can see !gcalc it pops up on your screen, so if someon types /ooc !gcalc it pops up on everybodies screen.
Can we get some power up in here
With the addition of exploding when dividing my zero this would be my excuse of playing gmod instead of doing math homework.
Fixed the bug and added powers, square roots, Pi and tweaked the UI.
This is actually a pretty cool project, nice work!
This is pretty cool, good job!
now a ti-83? or whatever number they are on now
Let's get some graphing capabilities up in here.
If we get trigonometrical functions in there, I can finally stop wandering helplessly around on the hunt for a calculator while building. No seriously, needs more arc tangent :v:
Updated. Now on the workshop. Arc tangent functions in a future update.
I got bored so i decided to make a gui change to this...
[IMG]https://i.gyazo.com/877aa692d41118da55223af691e3732c.gif[/IMG]
you can see the pull request [URL="https://github.com/FearlessCaptain/Gcalc/pull/2"]here[/URL]
Sorry, you need to Log In to post a reply to this thread.