Top "Types" questions

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

How to round up integer division and have int result in Java?

I just wrote a tiny method to count the number of pages for cell phone SMS. I didn't have the …

java math types formatting
What column type/length should I use for storing a Bcrypt hashed password in a Database?

I want to store a hashed password (using BCrypt) in a database. What would be a good type for this, …

mysql hash types storage bcrypt
How do I check if a C++ string is an int?

When I use getline, I would input a bunch of strings or numbers, but I only want the while loop …

c++ string types stringstream
What is SYSNAME data type in SQL Server?

What is the SQL Server SYSNAME data type for? BOL says: The sysname data type is used for table columns, …

sql sql-server tsql types
Float vs Decimal in ActiveRecord

Sometimes, Activerecord data types confuse me. Err, often. One of my eternal questions is, for a given case, Should I …

ruby-on-rails types floating-point decimal rails-activerecord
What is the benefit of zerofill in MySQL?

I just want to know what is the benefit/usage of defining ZEROFILL for INT DataType in MySQL? `id` INT …

mysql types unsigned-integer
SQL Server equivalent to MySQL enum data type?

Does SQL Server 2008 have a a data-type like MySQL's enum?

sql sql-server tsql sql-server-2008 types
When to use NSInteger vs. int

When should I be using NSInteger vs. int when developing for iOS? I see in the Apple sample code they …

ios objective-c types nsinteger
C# Generics and Type Checking

I have a method that uses an IList<T> as a parameter. I need to check what the …

c# generics types
What's the difference between size_t and int in C++?

In several C++ examples I see a use of the type size_t where I would have used a simple …

c++ c types int