Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pi * 2 problem
#1
when making a a semicircle or whatever this doesn't seem to work.
why doesn't this work?

Code:
CLS
SCREEN 9
pi = 3.141593
CIRCLE (160, 100), 40, 4, -pi * 2, -pi

I couldn't figure it out.
[Image: sig.php]
Back by popular demand!
I will byte and nibble you bit by bit until nothing remains but crumbs.
Reply
#2
Code:
DEFINT A-Z
CLS
SCREEN 9
CONST pi = 3.141592

a! = -pi * 2
b! = -pi

PRINT a!; b!

CIRCLE (160, 100), 40, 4, -6.28318, -3.14159

CIRCLE (160, 100), 40, 4, a!, b!

It seems that the start! or end! values can't be equal to the value said in the help.

In QB's help: -2PI to 2PI, where PI = 3.141593

In reality: -2PI to 2PI, where PI = 3.141592

Weird.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)