Questions tagged [numeric]

Questions related to numerical problems that cannot be precisely solved fall under this tag, as well as those where finding the exact solution is more challenging than using numerical methods.

Arranging a JSON array based on the numerical value within an object

I am interested in sorting an array from a json file based on distances calculated using the haversine library. The purpose is to find geolocations near a specified value and display the closest results first. function map(position){ var obj, ...

In the realm of numeric input in JavaScript (using jQuery), it is interesting to note that the keyCode values for '3' and '#' are identical

I am in need of setting up an <input type="text" /> that will only accept numeric characters, backspace, delete, enter, tabs, and arrows. There are many examples out there, and I started with something similar to this: function isNumericKeyCode (ke ...

Are eigenvectors in Numpy unreliable? Where did I make a mistake?

In order to perform certain calculations, I require an eigenvalue decomposition. Upon evaluating the functions of numpy, it has come to my attention that there is some unexpected behavior being exhibited! Consider the following code snippet: import numpy ...

Determine in PHP if a decimal number is greater than 0.3

Trying to find out if a number has a decimal using the following code snippet. Example: $val = 3.3; if (is_numeric( $val ) && floor( $val ) != $val) { return true; } Is there a way to determine if the decimal value of the number is equal to o ...