
Search In
The Round function return a value towards the nearest integer.
Syntax:-
Math.round(number)
number is any numeric expression.
If the fractional portion of number is .5 or greater, the argument is rounded to the next highest integer. If the fracti
We might be familiar with the cakephp simple feature which allows us to retrieve and save data in database using find() and save() functions respectively.
But there is an another way of writing forward SQL queries in cakephp through which we can wri
# A Python program returning multiple values from a method using tuple
# Function is defined that returns a tuple
def fun():
str = "Demo"
x = 20
return str, x; # Returning a tuple
# Driver code to test above method
str, x = fun(
# A Python program returning multiple values from a method using dictionary
# Function is define that returns a dictionary
def fun():
d = dict();
d['str'] = "Demo"
d['x'] = 20
return d
# Driver code to test above method
d =
Hi All,
In programming world, we have to perform some basic operation on list or tuple but in python , it is easy to perform any operation on list or tuple. for example:-
If you have a number tuple/list like
data = [[1,10,8], [4,5,6], [7,8,
There are two kind of for loops in PHP, one is for() loop & other is foreach().
The for() loop has three sections: init, termination & increment.
Syntax:
for (initialization; Condition Check ;increment) {
code to be executed;
}
First
Hi Friends,
This is a small article about editor templates in Asp.net MVC. What are they? Why do we need them and what are the scenarios where these editor templates can be used?. Let's find out.
Editor templates are provided in asp.net MVC to
In starling we can easily used greensock library. Sometime we need to add two property at the same time on different objects, By using TimelineLite we can do this. here is the code which represents the following.
var timeline:TimelineLite = new Tim
Step 1:- Create a custom CanvasView class that must extend View class and includes below function.
1) Declare the required variables in CanvasView class
private Drawable mImage;
// width and height of original image
private flo
In below example, I have written Python script to remove 'provision' from selection list when configuring Cash Flow Codes. Paste below python code in .py file :
def fields_get(self, cr, uid, fields=None, context=None):
res = super(account_cashfl
