As mentioned in the comments, the best way is to use Rational. Ex. A = Rational{Int}[1 2;3 4], To get the result in the desired format A*float(inv(A)). Credits for @mschauer.
, , , . , . . .
Julia , . - , . :
julia> A = Rational{Int}[1 2;3 4]
2x2 Array{Rational{Int64},2}:
1//1 2//1
3//1 4//1
julia> A*(inv(A))
2x2 Array{Rational{Int64},2}:
1//1 0//1
0//1 1//1
, , .
julia> float(A*(inv(A)))
2x2 Array{Float64,2}:
1.0 0.0
0.0 1.0
, . , , , . , , , , .