IEEE 754 floating point sometimes results in values that are very small, rather than zero. One example is 1.0 + 1.07 - 2.07, which returns 4.440892098500626e-16 instead of 0. This change tweaks the number formatting logic so that an exponential value with a negative exponent that is larger than the precision+1 returns 0 instead. For example: with precision 2, anything with an exponent of -4, -5 or more would become 0. 9e-3 = 0.009 = 0.01, but 9e-4 = 0.0009 = 0.001 = 0.00. This detail is unlikely to matter since this quirk is usually only triggered with values very close to zero. Closes #1469 |
||
|---|---|---|
| .externalToolBuilders | ||
| .settings | ||
| css | ||
| docs | ||
| example | ||
| i18n | ||
| images | ||
| lib | ||
| logs | ||
| perf | ||
| regression | ||
| src | ||
| test | ||
| tmp | ||
| .gitattributes | ||
| .gitignore | ||
| .project | ||
| .travis.yml | ||
| angularFiles.js | ||
| changelog.js | ||
| CHANGELOG.md | ||
| changelog.spec.js | ||
| changelog.tmp.md | ||
| check-size.sh | ||
| gdocs.js | ||
| gen_docs.sh | ||
| init-repo.sh | ||
| LICENSE | ||
| nodeserver.sh | ||
| package.json | ||
| Rakefile | ||
| README.md | ||
| release-commit.sh | ||
| start-iteration.sh | ||
| testacular-e2e.conf.js | ||
| testacular-jqlite.conf.js | ||
| testacular-jquery.conf.js | ||
| testacular-modules.conf.js | ||
| validate-commit-msg.js | ||
| validate-commit-msg.spec.js | ||
| version.js | ||
| version.yaml | ||
| watchr-docs.rb | ||
AngularJS
AngularJS lets you write client-side web applications as if you had a smarter browser. It lets use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. It automatically synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data binding. To help you structure your application better and make it easy to test AngularJS teaches the browser how to do dependency injection and inversion of control. Oh yeah and it also helps with server-side communication, taming async callbacks with promises and deferreds; and make client-side navigation and deeplinking with hashbang urls or HTML5 pushState a piece of cake. The best of all: it makes development fun!
- Web site: http://angularjs.org
- Tutorial: http://docs.angularjs.org/tutorial
- API Docs: http://docs.angularjs.org
- Developer Guide: http://docs.angularjs.org/guide
- Contribution guidelines: http://docs.angularjs.org/misc/contribute
Building AngularJS
Once you have your environment setup just run:
rake package
Running Tests
Running tests requires installation of Testacular:
sudo npm install -g testacular
To execute all unit tests, use:
rake test:unit
To execute end-to-end (e2e) tests, use:
rake package
rake webserver &
rake test:e2e
To learn more about the rake tasks, run rake -T and also read our
contribution guidelines and instructions in this
commit message.