TRUNC: Trunc truncate(cut off) the decimal points to specified argument. SYNTAX: TRUNC(number, precision);
ROUND: round function round off(mathematically) the number to the decimal points specified in argument.
SYNTAX: ROUND(number, precision);
SELECT TRUNC(24.677) FROM dual;
SELECT ROUND(24.677) FROM dual;
Use of Trunc and Round with date:
Zend Framework: Zend Framework is Open source, Object Oriented Application framework, that provide extensive library including MVC(model view controller) for developing scalable web application using PHP5.
Some important feature that make zend powerful framework:
- 100% object oriented.
- Extemely simple and Productive.
- Flexible architecture
- Having API for all latest Web developement feature
- Free of cost and fully supported.
JsonP comes into picture due to Same origin policy of AJAX requests.
Same origin policy: if a web page served from server example.com could not communicate by simple AJAX request to any other server.
To achieve cross domain JSON request we have to change request as well as respose format, the only way to communicate cross server is <script> tag, hence requesting server makes call responder server like that: