On Tue, Aug 26, 2008 at 2:59 AM, Philippe Saade <[EMAIL PROTECTED]> wrote: > > Hi > > I quickly browsed sage-support and the wiki. Sorry for duplicates > > What is the prefered way to restrict real precision in a cell, > worksheet or @interact. > > I modified @interact example with a slider but the numbers have to > many digits so the Latex output is ugly...
You should coerce the numbers to have last digits or use e.g., %.2f in a format string to truncate all but the last two digits. Without posting a more precise example it is difficult to give you any better advice. Your idea to "restrict real precision in a cell" doesn't make sense in the context of Sage, though it would make sense in a system like matlab. It's just not how sage works. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
