Intelligent Automation & Macro Software  

Go Back   Automation Anywhere, Inc. Forums > Products Zone > Automation Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Automation Anywhere Post messages and questions related to Automation Software here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-02-2009, 04:03 PM
ColinJD ColinJD is offline
Member
 
Join Date: May 2009
Posts: 38
Default Rounding

Hi Again,
Lets say I have
-
$Totala$ = 76
$Divider$ = 10
-
Then if I were to do a division
$Answer$ = $Total$ / $Divider$
will result in Answer being 7.6

How can I round this to being 7
Plus
Is there a simple way of obtaining the Modulus remainder
in this case '6'
Reply With Quote
  #2 (permalink)  
Old 06-02-2009, 04:38 PM
forumsupport forumsupport is offline
Senior Member
 
Join Date: Apr 2007
Posts: 1,342
Default

Hello,

You can use String Manipulation command to get the value before '.' and use modulo (%) operator with Variable Operation command to get the reminder.

We have attached a sample task for your reference. Please copy it under location, 'C:\...\My Documents\Automation Anywhere\Automation Anywhere\My Tasks' folder. Before running this task, create user variables, $Totala$ and $Divider$.

Hope that helps.
Attached Files
File Type: atmn rounding_sample.atmn (503 Bytes, 5 views)
Reply With Quote
  #3 (permalink)  
Old 06-02-2009, 08:01 PM
ColinJD ColinJD is offline
Member
 
Join Date: May 2009
Posts: 38
Default

Thanks Forum Support !
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 05:06 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2011 Automation Anywhere, Inc. All rights reserved