Skip to content

Python Journey

My Coding Blog

Menu
  • Links
Menu

Tag: float

Python>>Data Type:Float

Posted on August 23, 2022August 23, 2022 by coden00b

Floating point number is real numbers with decimal point (.)or fractional part. It can be positive or negative. Example: 5678.90 -2.88 0.99 >>> z = -1.234 >>> type(z) <class ‘float’> Let’s do arithmetic: >>> x = 8+8.1 >>> print (x) 16.1 >>> print (type(x)) <class ‘float’> Some key notes: 1. numbers separated with underscore can…

Read more

Recent Posts

  • The Zen of Python
  • Python>>String Interpolation and Formatting
  • Python>>String Methods
  • Python>>String Concatenation
  • Python>>Strings: Indexing and Slicing

Recent Comments

No comments to show.

Archives

  • January 2023
  • August 2022

Categories

  • Blog
  • Data Types