DiGrande.it

Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

FrY- Returns the percentage fraction of the height of the graph

Function that returns the fraction of the drawing area taken from the percentage of its height.

- FrY(P): float

Parameters:

- (float) P: percentage of the fraction to be derived.

Description:

To obtain the size in points of a portion of the drawing area, the function FrY can be used. This function accepts as arguments the percentage P indicating the fraction of the desired height. The function returns the fractional value of the height of the graph. For example, if the drawing area has a height of 250 points, and you want a 50% portion of the area, the FrY function will return 125 points.

This instruction corresponds to the fractional numeric type "number+y." As in the previous example, "FrY(50)" produces the same result as "50y." The difference between the two forms is that the fractional numeric type requires only explicit numeric values, while the FrY instruction can accept variables, constants, functions, or other types of expressions.