---
title: "Discussion on \"1 is int. 1.5 is float. TypeScript says number\" | Hashnode"
description: "Discussion on \"1 is int. 1.5 is float. TypeScript says number\". On the PHP DTO draft, a whole number is int and a decimal is float. TypeScript types both as number."
url: "https://hashnode.com/posts/1-is-int-1-5-is-float-typescript-says-number/6afe589f961cfa5f91dd0905"
---

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

Discussion

# [1 is int. 1.5 is float. TypeScript says number](https://kepttools.hashnode.dev/1-is-int-1-5-is-float-typescript-says-number?utm_source=hashnode&utm_medium=feed)

On the PHP DTO draft, a whole number is int and a decimal is float. TypeScript types both as number.

51m ago · 1 min read · kepttools.hashnode.dev  
Read the article

-   [#json](https://hashnode.com/tag/json)
-   [#php](https://hashnode.com/tag/php)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#kepttools](https://hashnode.com/tag/kepttools)

## Written by

[Ameen Usman](https://hashnode.com/@ameenusman)

@ameenusman

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

Free browser developer tools. Nothing you paste is uploaded.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
