Tuesday, 20 October 2020

A FSM for reading floating point and integral numbers

Introduction

Here is a finite state machine(FSM) that can recognize integers and floating point numbers.

Example

0, 3962, 0.2053, 0.00053, 1.2962, 2965.9825

You may try to input some numbers below to see the result.

Trial Input


Result
3.1416

Source Code

No comments:

Post a Comment