Tag

int

0 views collected around this technical thread.

Architecture Digest
Architecture Digest
Apr 22, 2025 · Databases

Understanding MySQL INT Display Width and ZEROFILL

This article explains why the number in MySQL's int(N) definition does not limit the column's numeric range, demonstrates that int(1) can store the full 4‑byte unsigned range, and shows how the ZEROFILL attribute adds zero‑padding for display purposes.

DatabaseMySQLZEROFILL
0 likes · 5 min read
Understanding MySQL INT Display Width and ZEROFILL
Java Architect Essentials
Java Architect Essentials
Apr 9, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

This article examines why storing phone numbers as Java Strings rather than ints yields better memory usage, semantic correctness, and JVM-level performance, discussing primitive vs reference types, bytecode differences, string pooling, and real‑world case studies.

Data TypesJVMPhone Number
0 likes · 10 min read
Choosing Between int and String for Storing Phone Numbers in Java
Java Tech Enthusiast
Java Tech Enthusiast
Mar 3, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

Because phone numbers are identifiers that can contain symbols and exceed the numeric range of an int, storing them as a String—despite higher memory use—is semantically correct, avoids overflow, preserves formatting, and benefits from JVM string pooling, making String the preferred type in most Java applications.

Data TypesJVMPerformance
0 likes · 7 min read
Choosing Between int and String for Storing Phone Numbers in Java
Architecture Digest
Architecture Digest
Feb 21, 2025 · Fundamentals

Choosing Between int and String for Storing Phone Numbers in Java

The article examines the trade‑offs of using Java's primitive int versus the String class to store phone numbers, covering memory usage, JVM bytecode behavior, data semantics, and practical performance implications for large‑scale systems.

Data TypesJVMPhone Number
0 likes · 8 min read
Choosing Between int and String for Storing Phone Numbers in Java
Java Tech Enthusiast
Java Tech Enthusiast
Oct 28, 2024 · Databases

Choosing Between int and string for Storing QQ Numbers

While storing early five‑ and six‑digit QQ IDs as int32 or int64 offers memory efficiency and fast queries, the later expansion to eleven‑digit numbers and potential inclusion of non‑numeric symbols makes a string representation preferable to ensure flexible, future‑proof handling of QQ numbers.

QQdata typedatabase
0 likes · 3 min read
Choosing Between int and string for Storing QQ Numbers
macrozheng
macrozheng
Aug 5, 2024 · Databases

Why MySQL int(1) Doesn't Limit Values and How Zerofill Changes Display

This article explains that the numeric argument in MySQL int types does not restrict the stored range, demonstrates inserting the maximum unsigned int value, and shows how combining a display width with ZEROFILL pads numbers with leading zeros for formatted output.

DatabaseMySQLZEROFILL
0 likes · 5 min read
Why MySQL int(1) Doesn't Limit Values and How Zerofill Changes Display
Test Development Learning Exchange
Test Development Learning Exchange
Aug 3, 2024 · Fundamentals

Understanding Python Magic Methods: __bool__, __int__, __float__, __complex__, __index__, __oct__, __hex__, and __dir__

This article explains Python's special (magic) methods such as __bool__, __int__, __float__, __complex__, __index__, __oct__, __hex__, and __dir__, describing their purpose, how they affect object behavior, and provides concrete code examples demonstrating their usage and output.

Magic MethodsPythonSpecial Methods
0 likes · 5 min read
Understanding Python Magic Methods: __bool__, __int__, __float__, __complex__, __index__, __oct__, __hex__, and __dir__
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 18, 2024 · Databases

MySQL INT Type Changes After Upgrading from 5.7 to 8.0 and How to Choose Integer Types

This article explains why MySQL columns defined as INT(10) appear as INT after upgrading from 5.7 to 8.0, demonstrates the change with reproducible examples, and discusses the storage limits, proper selection, and display‑width behavior of integer types including ZEROFILL.

Database upgradeInteger TypesMySQL
0 likes · 9 min read
MySQL INT Type Changes After Upgrading from 5.7 to 8.0 and How to Choose Integer Types
Test Development Learning Exchange
Test Development Learning Exchange
Aug 10, 2023 · Fundamentals

Python Built‑in Functions for Data Type Casting

This article explains how to use Python's built‑in casting functions—int(), float(), str(), bool(), list(), tuple(), set() and dict()—to convert between numeric, string, boolean, sequence, and mapping types, providing clear code examples for each conversion scenario.

Python__str__bool
0 likes · 14 min read
Python Built‑in Functions for Data Type Casting
Top Architect
Top Architect
Feb 11, 2022 · Databases

Understanding MySQL INT Display Width and ZEROFILL

This article explains that the numeric value in MySQL INT definitions (e.g., int(1) or int(10)) does not limit the column's range, demonstrates inserting the maximum unsigned value, and shows how ZEROFILL combined with a display width pads numbers with leading zeros.

DatabaseMySQLSQL
0 likes · 5 min read
Understanding MySQL INT Display Width and ZEROFILL
Laravel Tech Community
Laravel Tech Community
Feb 10, 2022 · Databases

Understanding MySQL INT Display Width and ZEROFILL Behavior

The article explains that the number in MySQL's INT definition (e.g., INT(1) or INT(4)) does not limit the column's numeric range, but only affects display width when combined with ZEROFILL, illustrating the concept with practical CREATE and INSERT examples.

Database DesignMySQLSQL
0 likes · 4 min read
Understanding MySQL INT Display Width and ZEROFILL Behavior
Python Programming Learning Circle
Python Programming Learning Circle
Sep 29, 2021 · Fundamentals

Common Python Data Types and Their Usage

This article introduces Python’s fundamental data types—including integers, floats, booleans, and strings—explaining their characteristics, representation formats, common pitfalls such as floating‑point precision, and provides concise code examples illustrating each type’s usage in Python.

Data TypesPythonbool
0 likes · 3 min read
Common Python Data Types and Their Usage