If the pedal goes to the floor, it indicates a leak. Most commonly a rear slave cylinder, although a pin-sized hole in a pipe can cause the same. Also if the seals in the master cylinder are worn, it can allow leak back, but this will usually change the colour of the fluid in the reservoir. Whatever it is will only get worse, so best not to drive it until fixed.