- Home /
First algorythm, need help :/
EDIT : After realising my Algorithm is wrong, i reset my mind and found the right algorythm.
input speed / max speed * max degrees on speedclock = degrees for input speed.
EXAMPLE : we have a speedclock which has a scale of 300, over 180 degrees.
assumming 300 speed : 300/300*180 = 180
180 = maximum of our Clock = 300 speed
Problem still The same. Need to Cast System.String -> int in order to calculate
:D I just was about to write that your algorythm seems a bit wrong ;)
Answer by Bunny83 · May 13, 2011 at 10:31 AM
int.Parse();
should do the job.
Thank you for the response, bunny. I've never used int.Parse before, and i do not soo hew it supports my cast from system.string to int
I've started with C# and .NET/mono together with Unity about a year ago. $$anonymous$$ost of it was new for me but slowly i get used to it ;)
Your answer
Follow this Question
Related Questions
Can someone help me fix my Javascript for Flickering Light? 6 Answers
Marching Cubes for Unity in JavaScript [Concept] 1 Answer
Plain calculating operations? :o 2 Answers
Find connections dont working 0 Answers
Room Path Generator 1 Answer