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

FrX- Returns the percentage fraction of the width of the graph

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

- FrX(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 FrX can be used. This function accepts as arguments the percentage P indicating the fraction of the desired width. The function returns the fractional value of the width of the graph. For example, if the drawing area has a width of 200 points, and you want a 50% portion of the area, the FrX function will return 100 points.

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