e_zqk@163.com Posted January 13, 2009 Posted January 13, 2009 For example ,how to get a knowed line's center point with vba programe? Quote
borgunit Posted January 13, 2009 Posted January 13, 2009 Normally you would just use math to solve. The end points are known properties so you would calculate from there. Quote
e_zqk@163.com Posted January 15, 2009 Author Posted January 15, 2009 thank you, but i am afraid the center point calculated by computer is not accurate enough . if we scale up the drawing , we will find the difference. can you find some method more accurate? Quote
CmdrDuh Posted January 15, 2009 Posted January 15, 2009 please post an example, as 14 decimal places should be accurate enough Quote
ASMI Posted January 15, 2009 Posted January 15, 2009 thank you, but i am afraid the center point calculated by computer is not accurate enough . if we scale up the drawing , we will find the difference. can you find some method more accurate? :D Do you know that most of the geometric calculations mustn't be accurate because it uses the irrational number pi? If I do not mistake at this time is calculated 100 billion digits after the decimal point. You can continue: 3,141 592 653 589 793 238 462 643 383 279 502 884 197 169 399 375 105 820 974 944 592 307 816 406 286 208 998 628 034 825 342 117 067 982 148 086 513 282 306 647 093 844 609 550 582 231 725 359 408 128 481 117 450 284 102 701 938 521 105 559 644 622 948 954 930 381 964 428 810 975 665 933 446 128 475 648 233 786 783 165 271 201 909 145 648 566 923 460 348 610 454 326 648 213 393 607 260 249 141 273 724 587 006 606 315 588 174 881 520 920 962 829 254 091 715 364 367 892 590 360 011 330 530 548 820 466 521 384 146 951 941 511 609 433 057 270 365 759 591 953 092 186 117 381 932 611 793 105 118 548 074 462 379 962 749 567 351 885 752 724 891 227 938 183 011 949 129 833 673 362… Quote
rocheey Posted January 15, 2009 Posted January 15, 2009 and what makes you think a vba macro is going to somehow be MORE accurate than the parent program it's running under? and, when you think of it, just how many extra decimal points would you need, if you are *dividing by two* ?? one, at most ...... Quote
e_zqk@163.com Posted January 16, 2009 Author Posted January 16, 2009 thank you for all your reply , i think the double type is accurate enough commonly. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.