Best of MathSeptember 2022

  1. 1
    Article
    Avatar of phProduct Hunt·4y

    MathLive.js - A web component for math input

    MathLive provides a JavaScript implementation that faithfully reproduces the output of TeX. MathLive supports over 800 TeX commands.

  2. 2
    Article
    Avatar of freecodecampfreeCodeCamp·4y

    How to Work with Numbers and Dates in JavaScript

    A number is a primitive wrapper object used to convert the data type to a number. We will see how to convert a string to number using the Number wrapper object. The first method is better because it is more precise. If the floating point (the number after the decimal) is below 5, it rounds down. It is totally opposite to Math.floor() Math.ceil() rounds up to next integer of the floating points.

  3. 3
    Article
    Avatar of communityCommunity Picks·4y

    A Guide to Rounding Numbers in JavaScript

    JavaScript’s Math object provides a number of ways to round numbers to an integer value. Rounding down ensures that the integer will start at zero and that each integer will have an equal chance of being returned. The next method we’ll look at is Math.trunc, which truncates the number provided as an argument. It basically just removes the decimal part of the number, leaving just the integer part. The two methods behave differently.