Okay, here's a newbie theoretical question. In other words, something I've come across which I have no idea why I would ever use but I'm curious about it anyway!
If i add a number to a variable, the answer to this becomes the new value of that variable, and if I subtracted a number from the variable, it would then subtract it from the new value rather than the original value.
However, when I use either a ceil or floor function to a float, the rounded value doesn't behave like the previous example. Instead, when I do a mathematical function to the variable, it takes it from the original value rather than the new ceil-ed or floor-ed value.
Is the reason for this something to do with the fact that ceil and floor aren't pure mathematical functions like adding or squaring? If I wanted to in the previous example retain the value of the ceil (4) when adding to its value, how would I do this?
PS: Brownie points to anyone who can come up with a reason as to why I would do this in a real project.
Simple solutions are sometimes the hardest to come by. I spent 20 minutes the other day writing a function for an application I'm developing, only to find out that it was a new function already introduced into PHP > 5.2 - the reason I found out? I gave it the same name they did.
Youíve relativelyCoach Outlet recently arrived in New Delhi after living in two of Asiaís other great cities,Coach Outlet Store Online Tokyo and Hong Kong, for several years. Do these cities feel like theyíre part of the same continent? Yes, and no. In terms Coach Factory Onlineof infrastructure, they couldnít be more different. Getting regularCoach Outlet power and water at my house in New Delhi is never a sure thing, even though Coach Purse Outlet OnlineIím paying the same rent that I paid in Tokyo and almost the same electricity prices. Both Hong Kong and Tokyo are also crowded places,Coach Factory Outlet Online but both cities are incredibly well planned and efficiently run. Efficient is not a word I would use to describe my Coach Bags Outlet Onlineday-to-day life in New Delhi. On the other hand, one thing that I think Hong Kong and New Delhi have in common isCoach Handbags Outlet a shared sense of optimism ó a feeling that the best is yet to come. Thatís definitely not the feeling you get in Tokyo,Coach Outlet Online or in the U.S. when I go home. Itís a big part of what I find addictive about living and working in this part of the world. You feel like youíre watching the future unfold.