Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/relrod/googlecalculator-scala
A client to Google Calculator in Scala using JSoup.
https://github.com/relrod/googlecalculator-scala
Last synced: 13 days 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 12 years ago)
- Default Branch: master
- Last Pushed: 2012-04-17T00:23:04.000Z (over 12 years ago)
- Last Synced: 2024-10-04T16:22:06.025Z (about 1 month ago)
- Language: Scala
- Homepage:
- Size: 108 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GoogleCalculator for Scala
==========================[![Build Status](https://secure.travis-ci.org/CodeBlock/GoogleCalculator-scala.png)](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!