plzz help me +0 i want to write a function of sign function without using system.math library in c#. plz help me how can i write this code??? +0 Hello all, I'm having some trouble with a project I am doing and I was wandering if anybody could help me/point me in the right direction. So the gist of what is happening is I have a program that is supposed to be flipping 2 coins independently of each other but each coin always mirrors the others result. Hear is the 2 pieces of code. first of all the code to flip the coin. class Coin { private const int HEADS = 0; private const int TAILS = 1; private int face; /// /// Random class object used to … +0 I'm currently re-writing a bit of code and i'm in two minds about which way to take it. Advice would be greatly appreciated :) The application is used to control a USB circuit board. The board has 32 analog outputs. The outputs are switched on and off by sending a 32bit integer to the board. So to turn on outputs 2 and 4 you send it the number 10 (10= 0101) or to turn on 1,2 and 3 you send 7 (1110) etc. This part is outside my control. I currently set the outputs usign a simple math equation: [CODE]Output1 … +0 Hi I need to format a decimal value to time and then display it in a textbox in the proper format. eg: double value = 1.25 to "1:15" I do not have a clue how to go about it Thanks +0 Hello, I need to create a function which takes parameters for a circle and checks if a given point(x,y) lies within the circle (or on the edge). Like this: [CODE]public static bool PointExistsInCircle(Double CircleX,Double CircleY,Double CircleRadius,Double PointX,Double PointY) { needs to return 'true' if the point is in the circle, if not return 'false'. }[/CODE] Could someone help me with this?, unfortunately i'm not good at math.. Mervin. +0 I am aware that JavaScript arithmetic does not handle either really large numbers or decimals well. This is why I have made this library of functions. I am posting it here rather than under "code snippets" because I would like to learn from your comments. Along with the library is a demo. [CODE]

The End.