Top "Types" questions

Types, and type systems, are used to enforce levels of abstraction in programs.

How can I round a number in JavaScript? .toFixed() returns a string?

Am I missing something here? var someNumber = 123.456; someNumber = someNumber.toFixed(2); alert(typeof(someNumber)); //alerts string Why does .toFixed() return a …

javascript types rounding
Class constructor type in typescript?

How can I declare a class type, so that I ensure the object is a constructor of a general class? …

class typescript types constructor
Which data type for latitude and longitude?

I am newbie to PostgreSQL and PostGIS. I want to store latitude and longitude values in PostgreSQL 9.1.1 database table. I …

postgresql types latitude-longitude postgis
MySQL integer field is returned as string in PHP

I have a table field in a MySQL database: userid INT(11) So I am calling it to my page with …

php mysql types int gettype
Why isn't textarea an input[type="textarea"]?

Why is there an element <textarea> instead of <input type="textarea">?

html input types textarea
What primitive data type is time_t?

I do not know the data type of time_t. Is it a float double or something else? Because if …

c types printf time-t
How to check if variable's type matches Type stored in a variable

User u = new User(); Type t = typeof(User); u is User -> returns true u is t -> …

c# reflection types
Which MySQL datatype to use for an IP address?

Possible Duplicate: How to store an IP in mySQL I want to get the IP address from $_SERVER['REMOTE_ADDR'] …

php mysql types ip-address
Difference between long and int data types

Considering that the following statements return 4, what is the difference between the int and long types in C++? sizeof(int) …

c++ types integer size
How to know function return type and argument types?

While I am aware of the duck-typing concept of Python, I sometimes struggle with the type of arguments of functions, …

python types