very good! Bruce, I have a question, how do I round a decimal number up or down to 2 places and this new rounded number be used to calculate an area, multiplying by another number (example: 2.355 to 2.36) So I take 2.36 and multiply it by another number. I ask this because the only way I found was to create a loop to check the third decimal place, but the code was too long.
You use the ROUND_INT (or INT...depending on what you want) function combined with a multiplier to get the decimal rounding desired. E.g. oldNumber = 2.355 newNumber = round_int(oldNumber*100)/100
@@BarkingDogBIM Bruce, thank you very much! I understood the logic after I did this calculation on the calculator. I hadn't thought about that. You are the best teacher I have ever had. Thanks again!
Splendid
very good! Bruce, I have a question, how do I round a decimal number up or down to 2 places and this new rounded number be used to calculate an area, multiplying by another number (example: 2.355 to 2.36) So I take 2.36 and multiply it by another number. I ask this because the only way I found was to create a loop to check the third decimal place, but the code was too long.
You use the ROUND_INT (or INT...depending on what you want) function combined with a multiplier to get the decimal rounding desired. E.g.
oldNumber = 2.355
newNumber = round_int(oldNumber*100)/100
@@BarkingDogBIM Bruce, thank you very much!
I understood the logic after I did this calculation on the calculator.
I hadn't thought about that.
You are the best teacher I have ever had.
Thanks again!