Question: Looking through the [VisualForce Developer's Guider](https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_advanced_dashboard_components.htm), there is information on how to create a dashboard with VisualForce.

I have no problem adding a VisualForce component or selecting the VF Page as the "Data Source", however instead of displaying the rendered page, I just see the bottom-left most VF-XML:

![enter image description here](https://i.stack.imgur.com/V0vZt.png)

Answer: 
See [documentation](https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_decimal.htm#apex_System_Decimal_round_2) for Decimal class

in order to achieve what you want you need to round your result up:

```
Decimal block = a/b;
Integer roundedBlock = block.round(System.RoundingMode.UP));

```

UPDATE: I have suggested you use RoundingMode.UP based on your examples, however you should also consider using RoundMode.CEILING (or Math.ceil() as suggested by @MLucci) - difference between the two is around behaviour with negative numbers.
You can try this code : -
The solution is to explicitly convert one of the values in the division expression to a Double before the division operation is performed.

```java
Integer x = 5;
Integer y = 2;
Double d = ((Double) x) / y;

```

In this case the Integer x is casted to a Double and the Integer y is promoted to a Double for the duration of the calculation, so that a Double division can be performed. The result is 2.5.