Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In this code I want the value to be rounded of multiplication of FIREBASE and FIRFAC and to be saved in the temp field. How to do that??

What I have tried:

Python
DW3P['TEMP_FIELD'] = DW3P['FIREABASE']*DW3P['FIRFAC']
round['TEMP_FIELD'] = TEMP_FIELD
BASE_DIFFERENCE = [round('TEMP_FIELD')]-['FIREA-BASE']
TOTAL_DIFFERENCE = ['TOTAL_DIFFERENCE'] + ['BASE_DIFFERENCE']
DW3P[round('TEMP_FIELD')] = DW3P['FIREABASE']
Posted
Updated 15-Mar-22 9:35am
v2
Comments
Maciej Los 15-Mar-22 16:49pm    
Yashwant Singh Shekhawat 15-Mar-22 22:14pm    
I have applied round function but I am getting syntax error....can you please help me with the correct syntax with this code
Richard Deeming 16-Mar-22 4:38am    
If you want someone to help you fix an error, then you need to provide the details of that error.

Click the green "Improve question" link and update your question to include the full error message. Remember to indicate which line of code it relates to.
Maciej Los 16-Mar-22 7:59am    
:thumbsup:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900