1. RESP: Temprature, Logs and Mouse
[ Temprature Conversion ]
Thanks Andy Kurnia I would never have gotten those bugs. And the small
difference might be important Daniel.
[ Logs ]
Jesus Consuegra had the error : "may only take log of a positive number"
This is a mathematical error. The log function in euphoria will tell you what
power e (2.57) has to be raised to to make the number passed to it.
ie A = e ^ 2 (^ means raise to the power )
log A = 2
Since e is positive no matter what you raise it to the power of, it will always
become a positive number. So working in the opposite way using log( A ) a must
be positive because a negative A can not be created by raising e to a power.
Simplely A has to be positive for use in log ( A ).
[ Mouse Help ]
In graphics modes 0 and 1 there is 8 pixels per row.
In graphics modes 2 and 3 ( and most modes after ) there are 16 pixels per row.
In most modes there are 8 pixels per column
-----Untested Psuedo Code -----
Let GMode = The Current Graphics Mode
XPos = Mouses Current X Position -- ( Mouse[2] )
YPos = Mouses Current Y Position -- ( Mouse[3] )
Col = floor( XPos / 8 ) + 1
Row = floor( YPos / (8 + 8*(GMode>1) ) ) + 1
-----
Sincerely,
Mathew Hounsell
Mat.Hounsell at Mailexcite.Com
Free web-based email, Forever, From anywhere!
http://www.mailexcite.com