|
[Sponsors] |
June 29, 2012, 06:16 |
Integer part in StarCD macro
|
#1 |
Member
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 75
Rep Power: 15 |
Hi,
Doing post-processing, I need to get integer part of a number, but I have no clue how to get that in StarCD Any ideas how to get the integer part of a decimal number? example: integer part of "2.356" to be "2", and "5.897" to be "5" When you *set a parameter, it shows the real and integer part. How to *set a new parameter with the integer part of the previous one? thanks for any help |
|
June 29, 2012, 11:21 |
|
#2 |
Senior Member
Pauli
Join Date: Mar 2009
Posts: 189
Rep Power: 17 |
*calc with the int function.
|
|
July 2, 2012, 04:06 |
|
#3 |
Member
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 75
Rep Power: 15 |
Thank you a lot!
|
|
Tags |
integer, postprocessing, starcd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] integer part , groovyBC | T.D. | OpenFOAM Community Contributions | 8 | May 26, 2017 14:09 |
[ICEM] create Part | wangy1767 | ANSYS Meshing & Geometry | 10 | June 30, 2012 19:46 |
Macro Trouble -Winows Explorer Crashes with Macro | Martin Castillo | FLUENT | 1 | July 25, 2007 05:18 |
Macro problem | cfddummy | Siemens | 1 | April 9, 2007 13:37 |
how to read a gridpro 2d file into starcd shell | prc | Siemens | 3 | December 21, 2006 19:59 |