Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Rounding the Exponent value

Former Member
0 Likes
376

Hi all

I have a problem while declaring a variable with type f.

The variable is added with a set of exponent values which are fetched from a table.

when the value decreses by 0.00001. The output of the variable is for exponent is increasing.

For example 0.1333 E-7 is returned as 1.333E-8.

I need to fix the exponent value as E-7. I have seen the synatax with write statement but for my requirement i need to move the value to the variable instead of write statement

Please let me know your suggestion to solve this problem.

Thanks,

Karthikeyan.

Hi all

I have a problem while declaring a variable with type f.

The variable is added with a set of exponent values which are fetched from a table.

when the value decreses by 0.00001. The output of the variable is for exponent is increasing.

For example 0.1333 E-7 is returned as 1.333E-8.

I need to fix the exponent value as E-7. I have seen the synatax with write statement but for my requirement i need to move the value to the variable instead of write statement

Please let me know your suggestion to solve this problem.

Thanks,

Karthikeyan.

1 REPLY 1
Read only

Clemenss
Active Contributor
0 Likes
336

Please post your code. From what you write I really do not understand what you are talking about.

Regards,

Clemens