[Ja...] Posted February 28 Share Posted February 28 Hello all, Quick question, is there a way to output results with the use of rounding to three decimal places only? Our customer only is interested in values to this extent and we are attempting to provide reports to satisfy this requirement. We have revised our Calypso program to only display values to three places, but since there is an issue at the fourth or fifth decimal place, it is reported as out of tolerance. Ex. S/B: 10.000 +/- .005 dimension. Is: 10.005002 This result will then show up as red on our PiWeb report. Using Calypso 2022, ServicePack 1. Thanks for any assistance provided, James Canham Link to comment Share on other sites More sharing options...
[Ma...] Posted February 28 Share Posted February 28 If you really want to ignore those numbers beyond rounding, then use result element, where you can do your own rounding formula I think it would be this simple formula round(getActual("10a - Width").actual,3) round: rounding number round( NUMBER TO ROUND, NUM OF DECIMALS ) Don't forget to mark characteristic without rounding and check to hide marked items. This is the hardest approach - perhaps on PiWeb side would be an easier way with some formulas on protocol. Link to comment Share on other sites More sharing options...
[To...] Posted February 28 Share Posted February 28 This is from ASME Y14.5-2009. Link to comment Share on other sites More sharing options...
[To...] Posted February 28 Share Posted February 28 (edited) I can believe I am about to post this but another way is to increase the tolerance limits to an amount that you will allow you to sleep at night. For example, let's say you are willing to risk that anything that is under .00001" out of tolerance is okay. Using your example, you would make the tolerance 10.000 ±.005010 and only display 3 decimal places. Your tolerance will look like ±.005 but it will be green. On the other hand, you could request a waiver for the .000002 out of tolerance condition. Edited February 28 Link to comment Share on other sites More sharing options...
[An...] Posted February 28 Share Posted February 28 Is there any chance that this is an issue with floating point precision? I don't think that it is, but I'm not well versed enough in computer science anymore to say for sure. Otherwise, I agree with Tom and his earlier posts. Link to comment Share on other sites More sharing options...
[DW...] Posted February 28 Share Posted February 28 (edited) Please sign in to view this quote. Please sign in to view this username. 🤣 I feel the same way. Please sign in to view this username. But in a pinch, its as easy as 1, 2, 3. Edited February 28 Link to comment Share on other sites More sharing options...
[To...] Posted February 28 Share Posted February 28 Please sign in to view this quote. Good to know Link to comment Share on other sites More sharing options...
[De...] Posted February 28 Share Posted February 28 Please sign in to view this quote. Sometimes ±.0002 can be ±.00024. 🤐 It can be our little secret. Link to comment Share on other sites More sharing options...
[Ja...] Posted February 28 Author Share Posted February 28 Hello, Thanks to all for supplying several options to this request. There are very creative and will be tested to see which one our customer accepts. Tom, thank you for ASME, callout, we have attempted many times to reference this statement to our engineering, and still the rounding section exists in our QA Insp. Manual!! Thanks again, these replies will greatly help. James Canham Link to comment Share on other sites More sharing options...
[Te...] Posted Wednesday at 01:40 PM Share Posted Wednesday at 01:40 PM In characteristic setting editor you adjust the the number of decimals points per characteristic, I use it for angles all the time Link to comment Share on other sites More sharing options...
[To...] Posted Wednesday at 02:08 PM Share Posted Wednesday at 02:08 PM Please sign in to view this quote. But it doesn't change the OP's out-of-tolerance condition if the actual has been rounded to the nominal limit. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in