Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Factors
Message
From
07/02/2008 10:31:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Factors
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01290395
Message ID:
01290395
Views:
50
Hi Math Gurus

Given an integer, how do I find the 2 highest factors that produce that exact integer or the next nearest higher integer? i.e.

1) Given 50 I would like 7 & 8 = 54. (7 x 7 = 49 would be too low)

2) Given 36 I would like 6 & 6.

Any easy calculation for that?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Next
Reply
Map
View

Click here to load this message in the networking platform