# unexpected(?) conversion to float while raising an integer to power -1 [closed]

This is what I observe in Sage 9.3:

```
sage: type(29**(-1))
<class 'sage.rings.rational.Rational'>
sage: type(ZZ(29)**(-1))
<class 'sage.rings.rational.Rational'>
sage: type(int(29)**(-1))
<class 'float'>
```

Why the last result is 'float'? Is it a bug or an expected behavior?

### Closed for the following reason
**the question is answered, right answer was accepted** by
*Max Alekseyev *

close date 2021-11-10 17:25:56.423544

add a comment