I was wondering what a good way might be to get a decimal answer when using units. For example, say I try
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 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org