Roundtots function – Multichannel Systems NeuroExplorer User Manual

Page 299

Advertising
background image

5.5.13.19. RoundToTS Function

RoundToTS Function


Rounds the specified number to the nearest timestamp value.

Syntax


double RoundToTS(doc, time)

Parameters

Parameter

Type

Description

doc

documentReference Reference to the document.

time

double

The time value (in seconds) to be rounded.

Returns


The document timestamp value (in seconds) nearest to the specified time.

Comments


None

Usage

NexScript

doc = GetActiveDocument()

ts = RoundToTS(doc, 1.234)

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 297

Advertising