Tag

String.format

1 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 4, 2025 · Fundamentals

Master Java String Formatting: 9 Practical Techniques with Code Samples

This article introduces a continuously updated Spring Boot 3 case collection and provides a step‑by‑step guide to nine Java string‑formatting methods—including String.format, MessageFormat, text blocks, number grouping, rounding, zero‑padding, printf, whitespace, and concatenation—complete with runnable code examples.

JavaMessageFormatString Formatting
0 likes · 6 min read
Master Java String Formatting: 9 Practical Techniques with Code Samples
Python Programming Learning Circle
Python Programming Learning Circle
Mar 12, 2021 · Fundamentals

Formatting Float Output in Python: Scientific Notation and Fixed‑Point Representations

This tutorial demonstrates how Python automatically displays large float values in scientific notation and shows how to use the % operator and the format() method to produce either nicely formatted scientific notation or full‑precision decimal output for float numbers.

Code ExampleString.formatfloat-formatting
0 likes · 3 min read
Formatting Float Output in Python: Scientific Notation and Fixed‑Point Representations