I have the area = given in textbox by user
and I have the Width = given in textbox by user
I want to calculate the Length using the relationship Area = Length * width
but i want to get the Length by trial using ( for each number from to by ) block
I tried as in the picture but it did not work
//This is a simple example just to illustrate the idea//
ABG
2
You will never get an exact match with an increment of 0.001 in a system that uses binary floating point math
The best you can hope for is to search for the minimum error.
1 Like
Ramon
3
(the exact correct number would be 2.653846153846154, but like @ABG has said you can get an aprox.)
1 Like
system
Closed
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.