File: integer.xml

package info (click to toggle)
datatables.js 1.10.21%2Bdfsg-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,604 kB
  • sloc: javascript: 64,254; xml: 10,441; php: 4,623; sh: 523; makefile: 21
file content (20 lines) | stat: -rw-r--r-- 1,104 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8" ?>
<dt-type group="js">
	<name>integer</name>
	<summary>Subset of the Javascript `Number` type using only integers</summary>

	<description>
	<![CDATA[

Javascript doesn't have a native integer data type as `Numbers` can represent integers without compromising data accuracy. However, it is often useful to indicate for a particular parameter or method that it expects or returns a value that is an integer, rather than a floating point number (which are also represented by the `Number` type). As such, we define this special, non-native, type to indicate the use of an integer value.

A detailed description of the `Number` type is available on the [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number).


## Use in DataTables

Where a parameter is shown as accepting an integer type, or a method returning an integer type, it indicates that a `Number` with an integer value is expected / returned. Passing in a floating point number will result in undefined behaviour.

	]]>
	</description>
</dt-type>