Question: Preventing automatic floating point evaluation for e.g. 2^(.5)

Hi everyone!

Say I have a simple expression in command line Maple that would become a float as soon as it is executed, e.g., 2^(.5). Is there any way I can keep this in symbolic representation by somehow suppressing the seemingly-automatic conversion to a full float? What I'm really looking for is something that would allow me to do this:

input: u := 2^(.5): convert(u,rational);

output: 2^(1/2)

Thanks for your time!

Please Wait...