Firstly, it pretty much defeats the purpose of defining a constant if you are then going to assign it to a variable and then use that variable. Instead, just use the constant. Also, while PHP is loosely typed so it likely does not matter, I would not quote the numeric value you are assigning it in the define(), assuming you want to use that value simply as a number and not as a string literal.
Otherwise, I might need a hint as to what you mean by "not working" in order to go any further with this.