API:GetUIScale

Gets the current scale value

Example:

/script DEFAULT_CHAT_FRAME:AddMessage(GetUIScale);

Will return the UI scale value from 0.5 to 1.0 (50% - 100%), to the chat frame.