A long-finned fish is almost definitely going to be male, but short fins doesn't always mean female. The best way is to check under the hood. If it has an ovipositor (white dot) right behind the ventrals on the tummy, it's female. Body shape is a hint as well, as the females are usually "fuller" in the front if they are carrying eggs.