# How-to articles, tricks, and solutions about NUMBER

How To Add New Elements To A JavaScript Array

To add new elements you can use the following JavaScript functions: push() unshift(), concat() function or splice(). See examples.

How to Add Telephone Links with HTML

In this snippet, you will find out how it is possible to add telephone links with HTML. See examples and try to add and style telephone links by yourself.

How to Calculate Text Width with JavaScript

Read this JavaScript tutorial and learn about the best method of calculating the text width. Read about the advantages of the method over other methods.

How to Check if a Number is Odd or Even in PHP

This is a short snippet that explains how to check whether a number is odd or even in PHP. Check out the handy methods and examples of our tutorial.

How to Check Whether a Number is Prime in PHP

Imagine a given number and you want to check whether it is prime or not with PHP. Here, we represent two methods: a simple method and a more efficient one.

How to Convert a Float Number to Whole Number in JavaScript

In this tutorial, you will read and learn detailed information about the methods used for converting a float number to a whole number with lots of examples.

How to Convert a Number to a String in JavaScript

Read the tutorial and find several easy and fast approaches to converting a number to a string in JavaScript. Choose the best method for your workflow.

How to Convert a String to a Number in PHP

This snippet is dedicated to one of the common PHP issues: how to convert a string to a number. You can easily do that by following the options we provide.

How to Convert Decimal to Hexadecimal in JavaScript

Read this tutorial and find the easiest way of converting the decimal number to hexadecimal in JavaScript. Also, find information about the number systems.

How to Find the Min/Max Elements in an Array in JavaScript

Read this JavaScript tutorial and learn about the methods used to find the minimum and maximum number of elements in an array. Find the fastest solution.

How to Find the Sum of an Array of Numbers

Read this JavaScript tutorial and learn several methods used to find or calculate the sum of an array of numbers. Also, find which is the fastest one.

How to Format a Number with Two Decimals in JavaScript

Read this JavaScript tutorial and learn useful information about several easy built-in methods that are used for formatting the number with two decimals.

How to Format Number with Two Decimals

In this JavaScript tutorial, you will find information about the formatting number to display with two decimals. Also, read about solving rounding issues.

How to Format Numbers as Currency String

This tutorial provides useful information about the formatting number as currency strings. Read and learn several methods you can use to solve your problem.

How to Generate a Random Number Between Two Numbers in JavaScript

It is frequently necessary to generate a random number between two numbers while working with JavaScript. This snippet will help you to do it efficiently.

How to Get a Timestamp in JavaScript

Almost all the developers come across the question: how to get a timestamp in JavaScript. This tutorial will help you find the most efficient methods to use.

How to Remove Text from String

Read this JavaScript tutorial and learn useful information about several easy and fast built-in methods that are used for removing the text from a string.

Which is the Float Input Type in HTML5

In this tutorial, youâ€™ll learn which is the float input type in HTML5. Read our snippet and try some examples with the step value to see the solution to this problem.