Tagged articles

double

5 articles · Page 1 of 1
51CTO HarmonyOS Developer Community
51CTO HarmonyOS Developer Community
Jun 26, 2026 · Mobile Development

HarmonyOS Float Precision Pitfalls: Choosing the Right Type for Sensor Data

This article explores floating-point precision issues in HarmonyOS development, demonstrating how float's 7-digit limit corrupts sensor data, why double increases memory 30% and fails in Native calls, and why BigDecimal kills real-time performance, concluding with a scenario-based selection strategy and validation mechanism.

BigDecimalHarmonyOSMemory Optimization
0 likes · 10 min read
HarmonyOS Float Precision Pitfalls: Choosing the Right Type for Sensor Data
Lisa Notes
Lisa Notes
Mar 17, 2026 · Fundamentals

Java Basics: Understanding Primitive Data Types from Scratch

This article explains Java's primitive data types—including integer, floating‑point, character, and boolean types—covers their memory sizes, value ranges, literal syntax, automatic and explicit type conversions, and provides concrete code examples and tables for reference.

IntegerJavaboolean
0 likes · 16 min read
Java Basics: Understanding Primitive Data Types from Scratch
Programmer DD
Programmer DD
Aug 15, 2021 · Fundamentals

Is Java’s long and double Access Truly Atomic? A Deep Dive

Through a multithreaded test program, this article explores whether Java’s 64‑bit long and double types are accessed atomically on 32‑bit and 64‑bit JVMs, explains the JVM memory model rules, and shows how volatility and hardware affect atomicity.

AtomicityConcurrencyJVM
0 likes · 10 min read
Is Java’s long and double Access Truly Atomic? A Deep Dive