For example, say I do
#define units
ft = units.length.foot
m = units.length.meter
#add some lengths and output in ft
(3*ft + 4*m).convert(units.length.ft)
I get back
6143/381*foot
Awesome! However, suppose I'd rather see this represented as a decimal than a fraction. If I try
(3*ft + 4*m).convert(units.length.foot).n()
I get an error. This is occuring on Sage 4.8 for sure, and I'm pretty sure in Sage 5.0 as well.
Does anyone know why this is doing this or how I might better ask Sage to give me a decimal answer of converted units?
Thank you in advance,
Justin