MCPcopy
hub / github.com/VSCodeVim/Vim / float

Function float

src/vimscript/expression/build.ts:53–58  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

51}
52
53export function float(value: number): FloatValue {
54 return {
55 type: 'float',
56 value,
57 };
58}
59
60export function bool(value: boolean): NumberValue {
61 return int(value ? 1 : 0);

Callers 6

expression.test.tsFile · 0.90
parser.tsFile · 0.90
mapNumberFunction · 0.90
evaluateFunctionCallMethod · 0.90
fromJSObjMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected