https://github.com/relrod/googlecalculator-scala
A client to Google Calculator in Scala using JSoup.
https://github.com/relrod/googlecalculator-scala
Last synced: 3 months ago
JSON representation
A client to Google Calculator in Scala using JSoup.
- Host: GitHub
- URL: https://github.com/relrod/googlecalculator-scala
- Owner: relrod
- Created: 2012-03-19T03:39:00.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-04-17T00:23:04.000Z (about 13 years ago)
- Last Synced: 2025-02-15T06:20:47.525Z (5 months ago)
- Language: Scala
- Homepage:
- Size: 108 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GoogleCalculator for Scala
==========================[](http://travis-ci.org/CodeBlock/GoogleCalculator-scala)
This is just a very simple wrapper around Google Calculator, similar to what
WWW::Google::Calculator does for Perl.Using it
========```scala
scala> import me.elrod.GoogleCalculator._
import me.elrod.GoogleCalculator._scala> GoogleCalculator.calculate("2 + 2")
res0: String = 2 + 2 = 4scala> GoogleCalculator.calculate("3 GB to MB")
res1: String = 3 gigabytes = 3072 megabytesscala> GoogleCalculator.calculate("pi")
res2: String = pi = 3.14159265
```License
=======3-clause BSD, same as Scala itself.
Contributions
=============Glady accepted!