Something like this should work, but I know align has been a pain before with me.
PHP Code:
new GuiTextEditCtrl("Calculator_input")
{
profile = GuiBlueTextEditProfile;
useownprofile = true;
profile.align = "right";
x = 5;
y = 5;
width = 155;
height = 30;
text="0";
}