ci viene chiesto di renderlo più piccolo del 20%! Given a large rectangular object w and high h we are asked to make it smaller by 20%! First of all, we decrease the width of 20%:
1 | object.width object.width = - ((object.width * 20) / 100) |
which
1 | object.width object.width = - (object.width * 0.2) |
which
1 | object.width object.width = * (1-0.2) |
Because of the height is exactly the same.
When there's a third object, that is, there has been given the percentage to be removed from our object, but by a third party, we have:
1 2 3 | rate = object.width / object.height object.width terzo.width = * (1-0.2) object.height = object.width / rate |






Latest Comments
datrix : Thank you very much!
Robert : I rispsoto your questions with pleasure. The idea is really great. I am looking for a solution ...
Sting : @ Darius - you can see an example here: http://www.fight4fun.it/ clicking on: MAPS I hope ...
vik : Giustappunto I'm working on a project and the client asked me to show all the news (which are CPT) in ...
Giovambattista Fazioli : @ paso: absolutely. Simply identifying the field [cci] input [/ cci] you want to ...