Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Decimal Places for Real Numbers
Topic Summary: changing the default number of decimal places from 6
Created On: 14-Jul-2005 17:01
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 14-Jul-2005 17:01
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

By default, DOORS displays real numbers with 6 decimal places.

I have attached a kitchen script that creates a DXL column showing a real attribute with the selected number of decimal places. It is quite clever. Select "variable" as the number of decimal places and it removes trailing zeroes.

The code snippet is a function that takes a real parameter, and the number of decimal places and returns a string representation of the real number formatted as specified.

realattr.dxl
realattr.dxl  (5 KB)



-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 14-Jul-2005 17:05
User is offline View Users Profile Print this message


Jennifer Norris

Posts: 5
Joined: 12-Jul-2005

I really appreciate your help... and since I"m such a newbie I'm not quite sure where to put the code... I'm sorry... where do I put it...???
Report this to a Moderator Report this to a Moderator
 15-Jul-2005 12:10
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

To use copy the file realattr.dxl to DOORSHOME/lib/dxl/addins/user directory and it should appear on the formal module user menu next time you start doors.

You might want to take a look at the doors help on addins files.
There are some very strange rules about the format of files used here!

Select Help->DXL Reference Manual.
The topic is DOORS Window Control, The DXL Library and Addins menus.
Or search for "addins".

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 19-Jul-2005 18:05
User is offline View Users Profile Print this message


Jennifer Norris

Posts: 5
Joined: 12-Jul-2005

Thank you SO much! that is fabulous!!! And I will definitly look into the Addins section some more!
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.