How to Change length of the excerpt

To limit the number of characters of excerpt on page, all you have to do is to add this code to

“functions.php”

//Code: It will change the length of excerpt to 100 characters
add_filter('excerpt_length', 'new_excerpt_length');
function new_excerpt_length($length) {
return 100;
}