by @kodeazy

How to remove or add decimal point to number using / and // in python while dividing?

Home » Python » How to remove or add decimal point to number using / and // in python while dividing?
  • To remove decimal part while dividing the number we use //.
  • Below is the sample example.

    >>> 4//2
    2
  • To add decimal part while dividing the number we use /.
  • Below is the sample example.

    >>> 4/2
    2.0