7 posts in category —

javascript

Round numbers in JavaScript with precision

JavaScript has an inbuilt Math object with several useful methods that you can use to perform common mathematical operations on numbers. One of the most common tasks encountered when dealing with numbers in application development is rounding them off. For this the Math.round() method comes in handy and can be used like this: var someNumber=5.568942354894534; [&hellip

The new Web Tools

Our nifty Web Tools service just got updated. Among the new features is the ability to generate sha-256 and sha-512 hashes. We also ported everything to javascript from php using the javascript equivalent of php functions provided by the awesome php.js project. Visit Web Tools Tools: md5 calculator sha1 calculator sha-256 generator sha-512 generator base64 [&hellip

Javascript quadratic equation solver

Here is a simple javascript that solves quadratic equations of the form ax²+bx+c = O. You just have to specify the values of a ,b and c and the script then calculates the two real roots alpha(x1) and beta (x2)  of the equation. The script also tells you if the equation has a real root [&hellip

2017 All rights reserved | Powered by WordPress
Back to top
Theme by dynamicguru.com