Skip to content

Bug for Solution for part02-03_typecasting #32

@shurazen

Description

@shurazen

number = float(input("Please type in a number: "))
--
intpart = int(number)
decpart = number - intpart
print(f"Integer part: {intpart}")
print(f"Decimal part: {decpart}")
 

1.3 returns 0.2999999999999998

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions