"Wanderson " <firstname.lastname@example.org> wrote in message news:email@example.com... > Hi, > > I was trying to implement an algorithm to check for prime numbers and I > found an interesting question: > > Is possible to matlab calculate the division 2147483647/11 and return the > decimals ? It is always rounded to 1.9523e+008, but I need the decimals > place.
Are you just looking for the remainder? If so, don't do the division; just use REM or MOD.
If you're looking for MATLAB to display the result with more decimal places shown, look at the FORMAT function. The FORMAT function will not change how the computations are _performed_ (they will be performed in double precision) just how the result is _displayed._