---
title: "Discussion on \"2 Ways to format decimal numbers in Swift\" | Hashnode"
description: "Discussion on \"2 Ways to format decimal numbers in Swift\". In programming, formatting numbers is an important task that helps to present data in a more readable and user-friendly way. In Swift, there are several ways to format decimal places, including using string interpolation, NSNumberFormatter, and the D..."
url: "https://hashnode.com/posts/2-ways-to-format-decimal-numbers-in-swift/6450914886e901becd69008f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [2 Ways to format decimal numbers in Swift](https://xavier7t.com/2-ways-to-format-decimal-numbers-in-swift?utm_source=hashnode&utm_medium=feed)

In programming, formatting numbers is an important task that helps to present data in a more readable and user-friendly way. In Swift, there are several ways to format decimal places, including using string interpolation, NSNumberFormatter, and the D...

May 2, 2023 · 3 min read · xavier7t.com  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#ios](https://hashnode.com/tag/ios)
-   [#iosdevx](https://hashnode.com/tag/iosdevx)
-   [#number-formatting](https://hashnode.com/tag/number-formatting)

## Written by

[Xavier](https://hashnode.com/@xavier7t)

@xavier7t · Toronto, ON, CAN

  
[View profile](https://hashnode.com/@xavier7t)

iOS Developer

iOS developer from Toronto, ON, CAN

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
