Tag

float

1 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Jun 18, 2025 · Backend Development

Master PHP’s is_float(): Detect Floats with Simple Code Examples

This guide explains PHP’s is_float() function, showing how it determines whether a variable is a float, with clear code examples for simple variables and arrays, and highlights important nuances such as strict type checking and automatic conversion behavior.

PHPbackend developmentfloat
0 likes · 5 min read
Master PHP’s is_float(): Detect Floats with Simple Code Examples
php中文网 Courses
php中文网 Courses
Feb 18, 2025 · Backend Development

Using PHP’s is_float() Function to Check for Floating-Point Variables

This article explains PHP’s built‑in is_float() function, demonstrating how it determines whether a variable is a floating‑point number, with simple and complex code examples, and discusses its strict type checking behavior and practical usage scenarios in backend development.

PHPbackend developmentfloat
0 likes · 4 min read
Using PHP’s is_float() Function to Check for Floating-Point Variables
php中文网 Courses
php中文网 Courses
Dec 1, 2023 · Backend Development

Using the ceil() Function in PHP to Round Numbers Upward

This article explains PHP's ceil() function, detailing its syntax, parameters, and behavior for rounding numbers upward, and provides three clear code examples demonstrating its use with positive, negative, and integer values, along with the expected output for each case.

PHPbackendceil
0 likes · 3 min read
Using the ceil() Function in PHP to Round Numbers Upward
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
Jan 23, 2022 · Fundamentals

Understanding Java Float hashCode: Why -0.0 and 0.0 Behave Differently as Map Keys

This article explains how Java's Float hashCode treats 0.0 and -0.0 as distinct values, causing unexpected behavior when using floating‑point numbers as HashMap keys, and shows how to debug, reproduce, and avoid the issue by using alternative representations.

HashCodeHashMapJava
0 likes · 10 min read
Understanding Java Float hashCode: Why -0.0 and 0.0 Behave Differently as Map Keys
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.

PythonStringbool
0 likes · 3 min read
Common Python Data Types and Their Usage
Laravel Tech Community
Laravel Tech Community
Jan 23, 2021 · Backend Development

PHP floor() Function – Truncating Float to Integer

The article explains PHP's floor() function, describing its signature, parameter, return type, and provides example code showing how it truncates floating‑point numbers to the nearest lower integer, with sample outputs for positive and negative values.

backendfloatfloor()
0 likes · 2 min read
PHP floor() Function – Truncating Float to Integer
Architecture Digest
Architecture Digest
May 29, 2020 · Fundamentals

Why Float Should Not Be Used for Storing Monetary Values and Better Alternatives

The article explains the precision loss caused by using float for monetary values, demonstrates the binary representation of floating‑point numbers, and recommends using integer (cents) or MySQL decimal types to store money accurately, providing Java and SQL examples.

DatabaseDecimalJava
0 likes · 8 min read
Why Float Should Not Be Used for Storing Monetary Values and Better Alternatives