# Variable calcuation - decimal issue

cyndi
Community Member Posts:

**5**
I'm really new to Lectora so I'm going to try to ask this in a way that makes sense. We are creating a course that I would like to have do the BMI calculation. I have entry boxes for the weight and height...I have actions set up to figure the height-squared, the weight divided by the height-squared and to multiply that answer by the 704.5. Here's the problem...in the calculation that does the weight divided by height-squared it only goes out to 2 decimal places and I need it to go to at least four to get a fairly accurate measurement. 2 decimals is just making the result come to far off...any idea of how to do that if it's possible.

I hope I've explained this clearly enough, but if not, let me know and I'll try again. Thanks in advance...I'm really new to Lectora so I'm going to try to ask this in a way that makes sense. We are creating a course that I would like to have do the BMI calculation. I have entry boxes for the weight and height...I have actions set up to figure the height-squared, the weight divided by the height-squared and to multiply that answer by the 704.5. Here's the problem...in the calculation that does the weight divided by height-squared it only goes out to 2 decimal places and I need it to go to at least four to get a fairly accurate measurement. 2 decimals is just making the result come to far off...any idea of how to do that if it's possible.

I hope I've explained this clearly enough, but if not, let me know and I'll try again. Thanks in advance...

I hope I've explained this clearly enough, but if not, let me know and I'll try again. Thanks in advance...I'm really new to Lectora so I'm going to try to ask this in a way that makes sense. We are creating a course that I would like to have do the BMI calculation. I have entry boxes for the weight and height...I have actions set up to figure the height-squared, the weight divided by the height-squared and to multiply that answer by the 704.5. Here's the problem...in the calculation that does the weight divided by height-squared it only goes out to 2 decimal places and I need it to go to at least four to get a fairly accurate measurement. 2 decimals is just making the result come to far off...any idea of how to do that if it's possible.

I hope I've explained this clearly enough, but if not, let me know and I'll try again. Thanks in advance...

#### Categories

- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 328 CenarioVR®
- 195 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products