# Revise true division for ints? Lets return (optionally) a Fraction!

**URL:** <https://discuss.python.org/t/revise-true-division-for-ints-lets-return-optionally-a-fraction/63454>\
**Category:** Ideas\
**Created:** [September 10, 2024, 8:31am UTC](https://discuss.python.org/t/revise-true-division-for-ints-lets-return-optionally-a-fraction/63454 "2024-09-10T08:31:20Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Lucas\_Malor](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/lucas_malor/32/24845_2.png) [@Lucas\_Malor](https://discuss.python.org/u/Lucas_Malor)\
**Post date:** [July 20, 2025, 10:45am UTC](https://discuss.python.org/t/revise-true-division-for-ints-lets-return-optionally-a-fraction/63454/10 "2025-07-20T10:45:05Z")

</div>

In reply of this post: [Literals for Decimal and Fraction - #25 by skirpichev](https://discuss.python.org/t/literals-for-decimal-and-fraction/63423/25)

> [@skirpichev](#):
>
> Recently it was added interface to control [integer string conversion length limitation](https://docs.python.org/3/library/stdtypes.html#int-max-str-digits). Interface like this could be used to control behaviour for integer division.

I don’t understand exactly this proposal. Would you add something like `sys.int_info.default_integer_division_output_type`?

If so, if I remember well, integer division is defined in the language definition. You should also change that.

IMHO introducing a Fraction literal it’s simpler.

---

_[View the full topic](https://discuss.python.org/t/revise-true-division-for-ints-lets-return-optionally-a-fraction/63454)._
