The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
number formats for variables Thread Tools Search this Thread Display Modes
How can I control the format, including the number of decimal places shown, for a variable, like the LineLength? There have been examples of date formats, but none of the Cocoa number formats I've tried work on floating point numbers. Without this control, Omnigraffle often displays numbers like 20.0002 or 19.9996, instead of simply rounding to 20.0.
 
I suspect the issue is that the variables are all strings...
 
Quote:
Originally Posted by whpalmer4 View Post
I suspect the issue is that the variables are all strings...
Yes. So why does formatting strings work for the month variable (see comment by "Ape" on http://forums.omnigroup.com/showthre...riables+format), but not for the lineLength variable?
 
Quote:
Originally Posted by dteman View Post
Yes. So why does formatting strings work for the month variable (see comment by "Ape" on http://forums.omnigroup.com/showthre...riables+format), but not for the lineLength variable?
Everyone is likely to want to control the formatting of dates, so they put in support for that. I doubt it even occurred to anyone that someone was going to want to use a format specifier on a line length!

In hindsight, I'll admit my answer wasn't the best -- I was thinking about the case of userdata where the values are strings even if numeric. Might not be unreasonable to ask that you get the chance to apply a format specifier to something like the line length variable which is a number internally, but expecting OG to parse numeric userdata so you can turn around and round it off might be a feature request that takes a very long time to get to the top of the pile!

To get that feature request, or any other feature request, in front of the Omni developers, use Help->Send Feedback or email omnigraffle@omnigroup.com. That way it will be tracked and entered in the database. A forum posting right before Macworld and with everyone busily trying to figure out how to move all of the Omni products to the iPad stands a better than usual chance of being missed, I'll wager...
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Variables in Omnigraffle 5.x? sloannyc OmniGraffle General 5 2009-11-06 07:38 PM
Variables like: <%CreationDate%> pinie OmniGraffle Extras 5 2009-04-08 02:35 PM


All times are GMT -8. The time now is 05:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.