Symbolica Creating a Number expression to convert a string fraction to a decimal

2019-05-15T16:45:24Z
Symbolica

Summary


Details

Can a fraction in a string expression be converted to a decimal by a number 
expression?


For Example: 
A String expression has a fraction for a value: 
 string1 = "1/4" 
Can a Number expression be equal to this string, but have the value converted 
to a decimal number?


Name Formula Value Type 
------ ------- -------- ------ 
string1 "1/4" "1/4" String 
Number1 ??? .25 Number



Solution

 There is a function: ug_askValueOfExpressionStr() 
Use this function in the formula to set the Number expression equal to the 
string fraction value.


Name Formula Value Type 
------ ------- -------- ------ 
string1 "1/4" "1/4" String 
Number1 ug_askValueOfExpressionStr(string1) .25 Number



Notes and References


Hardware/Software Configuration

Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: DESIGN
Version: V8.5
Function: EXPRESSION

Ref: 001-7152782

KB Article ID# PL8010076

Contents

SummaryDetails

Associated Components

Symbolica