Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:55:10 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  Rounding number in brains formula
Pages: 1   Go Down
Print
Author Topic: Rounding number in brains formula  (Read 405 times)
0 Members and 2 Guests are viewing this topic.
rrc1962
Active Member

Offline Offline

Posts: 434


View Profile
« on: December 20, 2010, 05:57:14 PM »

Can you round a number in a formula.  I need to round the output of a formula to zer decimal places.  IE 4.8973 needs to equal 5.  The VB script function Round() doesn't work.

Thanks
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #1 on: December 22, 2010, 10:24:43 AM »

you would need to do a work around.
send the dec val to a UDRO, then in macropump, read in that udro, do a vb round on it, repost it to another udro
in brains read in that rounded udro val and do what ever.

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!