Resource Center

Videos and Tutorials

How to use the FormatFloat instruction to create custom output strings

Creating Custom Data Output in CRBasic: Formatting Numbers with FormatFloat

Video thumbnail

Overview

Learn how to use FormatFloat in CRBasic to turn raw numeric measurements into clean, readable, and system-ready text. In this video, you'll learn how FormatFloat helps control decimal places, field width, leading spaces or zeros, and scientific or general number formats. You’ll also see practical examples of testing formats for sensor output for displays, status messages, and existing databases. Whether you’re working with data logger measurements, text files, or connected devices that require a specific string format, this tutorial will help you understand when and how to use FormatFloat effectively in real-world CRBasic programs.

Connect With Us

envelope icon
Phone Numbers
General: (435) 227-9000
location icon
Corporate Address
815 W 1800 N
Logan, UT 84321
send icon
Email Address
sales@campbellsci.com

As a trusted leader in measurement systems for more than 50 years, our top priority at Campbell Scientific has always been to provide the most accurate, reliable data for research and industry.